xsl-list
[Top] [All Lists]

Re: DTDs and offline processing

2005-02-01 03:39:06
You should use an XML Catalog.
As you are on Java you can either use Xerces [1] as your XML parser and its XML Catalog support or you can use the Apache commons resolver [2] directly.

[1] http://xml.apache.org/xerces2-j/
[2] http://xml.apache.org/commons/

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Tom Schutzer-Weissmann wrote:
I run into problems using Saxon on documents containing a DOCTYPE
declaration because it tried to look up the DTD even when I'm offline.
Is there a way to avoid this, short of removing the declaration?

The other problem is that without the DTD, entities can't be looked up,
so  I get an error. From what I could see in the FAQs, the only way
round that is to temporarily change &thing; into [[AMP]]something_else;,
with sed. Any alternatives?

regards,
Tom SW



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>