[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xml validation URGENT URGENT

Subject: Re: xml validation URGENT URGENT
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 03 Apr 2003 14:31:22 -0500
disable xsl validation doctype
Harsha,

Your problem isn't with validation as such. As was mentioned earlier in this thread, even if your processor is not validating, a DTD that is named in a DOCTYPE declaration will be consulted, because it may contain declarations relevant to the building of the document model in memory (not its validation), such as entity declarations or attribute value defaults.

So you cannot solve the problem of a broken reference just by turning a switch that says "don't validate". Many processors provide this switch -- but even having turned it, your error will persist.

Two remedies have been suggested:

1) pre-process your data to fix the broken reference (either change it to point to something available, or remove it altogether).

2) provide your parser with a custom URI resolver that hijacks the link, so when the system asks for the DTD, it gets back nothing. (Then your processor will happily go on its way doing what it does.)

Is there a reason why neither of these will work for you?

It seems from this end that your question has been asked and answered. What is still unclear?

If you ask the question in a Xalan forum (probably a good idea), you'll get a more detailed answer, but it'll likely amount to the same thing.

Cheers,
Wendell

At 01:57 PM 4/3/2003, you wrote:
Is there any option to turn off DTD validation during the XSL
transformation
I am currently using

java -cp C:\cm\lib\xalan.jar org.apache.xalan.xslt.Process -IN %1  -XSL %3
-OUT %2

Does it have any options to set in command line promt?/


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.