RE: Turn Input Document Validation Off

Unless you are using p:load with @dtd-validate=true, the XProc processor (or rather, the XML parser) does not DTD validate. However, if a DOCTYPE declaration is present, it has to scan the DTD in order to discover entity declarations.

If the DTDs don't declare any entities that the documents depend on, perhaps you could use an XML catalog and "redirect" all public/system identifiers to a dummy DTD.

Vojtech


--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech


> -----Original Message-----
> From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On
> Behalf Of Betty Harvey
> Sent: Tuesday, April 12, 2011 9:36 PM
> To: xproc-dev@w3.org
> Subject: Turn Input Document Validation Off
> 
> Is there a way to tell XProc not to validate an input document that has
> a
> DOCTYPE statement?  I have searched for solution but haven't been able
> to
> find one.
> 
> I am doing a conversion on documents where the XML documents were in
> various 'personal' environments.  The DOCTYPE statement points to many
> locations for the DTD.  Some of the documents have public identifiers
> and
> some have just the sysytem identifier to fully-qualified custom paths.
> 
> Calabash/Xproc chokes when it tries in include a file and cannot find
> the
> DTD.
> 
> I am hoping that I won't need to preprocess the files to strip the
> DOCTYPE
> before conversion.
> 
> TIA!
> 
> Betty
> 
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
> Electronic Commerce Connection, Inc. |
> harvey@eccnet.com                    | Washington,DC XML Users Grp
> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> Member of XML Guild (www.xmlguild.org)
> 

Received on Wednesday, 13 April 2011 07:32:22 UTC