Validation of xml file against DTD

P

Pathik

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
 
P

Philippe Poulard

Pathik said:
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:eek:utput
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 !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top