Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Validation of xml file against DTD

From: Philippe Poulard <Philippe.PoulardNO@----------.-----.-->
To: 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 !


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent