When you use the option -dtd:on, Saxon will enable DTD validation whenever it asks the XML parser to parse a document. It never does DTD validation except when parsing. The only way to achieve this is to do the validation by re-parsing the serialized output. I'm not aware of any DTD validator that operates independently of an XML parser.

This is in contrast to XSD validation, which is done quite separately from XML parsing.

Michael Kay
Saxonica

On 28/03/2012 17:08, Paul M wrote:
Hi:

I created 2.0 xslt and added this 
        <xsl:result-document validation="strict">

believing running the following on the command line
net.sf.saxon.Transform -dtd:on
might check the output document. But after investigating,  appears net.sf.saxon.Transform only checks source documents against dtd?

If I wanted to check my output xml documents conform to dtd, how would I use saxon jar on command line for this, if possible?
Or another command line util, if possible?

-Paul


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help