It's not Saxon itself that uses the DTD, it's the XML parser. If you're using Saxon 6.5.3 then by default you're probably using the AElfred XML parser. The way to tell any SAX parser to ignore the DTD is to supply an EntityResolver that intercepts the access to the DTD and returns a dummy DTD. Alternatively, it may be simpler to preprocess the source XML prior to parsing to remove the DOCTYPE declaration.
Michael Kay

From: [] On Behalf Of Tomas Kolaci
Sent: 05 October 2005 10:40
Subject: [saxon] How to ignore DTD



 Is it possible to force Saxon (6.5.3) to ignore DTD of the source document? I have problem with attributes with defined default value, which are always added into output XML (I want it there only in the case it was in the source document already), I think this should help me.


 Thank you!


 Best regards, Tomas