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(_at_)mulberrytech(_dot_)com
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