W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2011

Re: Turn Input Document Validation Off

From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
Date: Wed, 13 Apr 2011 10:19:53 +0200
Message-ID: <BANLkTimPjLt1ALw91edXSqn4AS2q8tkzew@mail.gmail.com>
To: harvey@eccnet.com
Cc: xproc-dev@w3.org
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)
> >
>
>
>
Received on Wednesday, 13 April 2011 08:20:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 13 April 2011 08:20:49 GMT