xsl-list
[Top] [All Lists]

RE: better way to validate XML ...

2004-02-10 15:43:02

Thanks for the suggestion ..

--Kotes
-----Original Message-----
From: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk]
Sent: Tuesday, February 10, 2004 4:34 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] better way to validate XML ...



I am looking for validating XML against schema before 
processing through XSLT.

Is it possible to validate using XSLT?? If not what other 
ways to validate ??


At present, you have to do this by running the schema validation and the
XSLT transformation as separate operations on the data. You should be
able to put this in a SAX pipeline to avoid parsing twice.

XSLT 2.0 provides for the concept of a "schema-aware XSLT processor"
which does what you are asking for (and a lot more). Watch this space
for an announcement of a schema-aware version of Saxon.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>