xproc / 1.0-specification

The 1.0 XProc specification and now abandoned drafts of a 2.0 XML specification
12 stars 6 forks source link

Ability to ignore DTD referenced from doctype declaration when loading documents #151

Open josteinaj opened 9 years ago

josteinaj commented 9 years ago

It would be useful to be able to ignore the DTD referenced in the doctype declaration when loading documents. If I remember right, the XML spec requires that XML parsers check for the existence of the referenced DTD, even when the DTD is not parsed, which typically results in a HTTP GET request or similar to whatever URL is given in the doctype.

I have all my XML catalogs configured now so I haven't had this problem lately, but this would be a nice feature that would avoid workarounds like loading the XML file as text, stripping away the doctype with a regex, storing the file and loading it again as XML.

Setting dtd-validate="false" on p:load does not help because the DTD is still pinged.