- From: Betty Harvey <harvey@eccnet.com>
- Date: Wed, 13 Apr 2011 14:18:15 -0400 (EDT)
- To: xproc-dev@w3.org
Thanks for the suggestions! I have used the catalog in the past successfully. I developing the conversion scripts and going to hand it off to another person who will actually run the conversion. I test data is coming multiple sources and environments and every environment is pointing to a different location to resolve the DTD. Some of the files aren't using public identifiers. Thanks again for your awesome help! Betty > If this is a one-time conversion it might actually be simpler to > pre-process > the files (sed replace or similar), rather than configuring a catalog. I > admit to doing it myself in some cases, although it's not very elegant. > > Jostein > > > 2011/4/13 <vojtech.toman@emc.com> > >> 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) >> > >> >> >> > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ 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 17:01:24 UTC