Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Validation of xml file against DTD [Thread Next] Re: Validation of xml file against DTDTo: NULL Date: 4/3/2007 2:07:00 PM
Pathik wrote:
> Hi All,
>
> currently I am developing one tool, in which i am converting input xml
> file to output xml file using
> xslt and xalan.
>
> When output xml file is generated i have to validate it against its
> dtd document.
>
> How can i do that in xalan? Any suggestions please..
>
> Thanks and Regards,
> Pathik
>
hi,
xalan won't validate your output ; you have to specify in xslt the
doctype on the output and pipe it to a validating parser
<xsl:output
method="xml|html|text|name"
version="string"
encoding="string"
omit-xml-declaration="yes|no"
standalone="yes|no"
*doctype-public="string"*
*doctype-system="string"*
cdata-section-elements="namelist"
indent="yes|no"
media-type="string"/>
xslt2 has features about validating the result output, but it works on
W3C xml schemas
--
Cordialement,
///
(. .)
--------ooO--(_)--Ooo--------
| Philippe Poulard |
-----------------------------
http://reflex.gforge.inria.fr/
Have the RefleX !
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
