xsl-list
[Top] [All Lists]

RE: DTDs and offline processing

2005-02-01 03:40:54
Hi,

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?

Use local DTD with a catalog resolver, e.g. from 
<http://xml.apache.org/commons/>. Or, write a entity resolver that returns an 
empty document when the external subset is requested by the parser.
 
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?

Ah, so scrach the empty external resolver. You need a catalog resolver. Easier 
that it sounds.

Cheers,

Jarno - Covenant: Tour de Force (live)

--~------------------------------------------------------------------
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>