Project

Profile

Help

How to avioid DTD validation

Added by Anonymous almost 18 years ago

Legacy ID: #3902320 Legacy Poster: Jens Stavnstrup (stavnstrup)

In an Ant file, I have the following fragment, which is used to transform at set of XHTML documents. <xslt basedir="..." destdir="..." includes="..." style="..."> <xmlcatalog refid="allcatalogs"/> <factory name="net.sf.saxon.TransformerFactoryImpl"> <attribute name="http://saxon.sf.net/feature/validation" value="false"/> </factory> -- I would expect that since the validation parameter is set to false, the DTD would only be used for things like entity resolving etc. However, elements such as e.g <td>, will be transformed to <td rowspan="1" colspan="1"> Isn't there anyway this can be avoided?


Replies (2)

RE: How to avioid DTD validation - Added by Anonymous almost 18 years ago

Legacy ID: #3902930 Legacy Poster: Jens Stavnstrup (stavnstrup)

The the title is properly not the right one. What I wanted to accomplish is actually implemented in xsltproc through the option --nodtdattr, which is described as "Do not apply default attributes from the document's DTD."

RE: How to avoid DTD validation - Added by Anonymous almost 18 years ago

Legacy ID: #3911340 Legacy Poster: Jens Stavnstrup (stavnstrup)

The bug might be in Saxon, but might also be an ant bug, therefore this report http://issues.apache.org/bugzilla/show_bug.cgi?id=40487 Note, link to test files included in report,

    (1-2/2)

    Please register to reply