Subject: RE: [xsl] How to Validate an XSL From: "Animesh Sharma" <asharma@xxxxxxxxxxxxxxxx> Date: Thu, 4 Mar 2004 16:03:02 +0530 |
I'm using MS XML. And XSL is given by user. I have to validate the XSL before applying given XSL over an XML. I load the XSL in a DOM Object. For that I need validator/API kind of thing. wcihc can tell me before hand whether XSL is correct or not. Regards, Animesh -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of George Cristian Bina Sent: Thursday, March 04, 2004 3:59 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] How to Validate an XSL > Is there an way through which I can validate whether an given XSL is valid or not programitically. You should look into the documentation for the XSLT processor you are using. For instance if you use a JAXP compliant XSLT processor then you can just create a Transformer from your stylesheet. If this succeeds then it is valid, otherwise you should be able to catch the errors in an ErrorListener set on the TransformerFactory. Best Regards, George ------------------------------------------------------------- George Cristian Bina mailto:george@xxxxxxxxxxxxx <oXygen/> XML Editor - http://www.oxygenxml.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to Validate an XSL, Willink, Ed | Thread | [xsl] Transforming XML to multiple , Richard Corfield |
Re: [xsl] How to Validate an XSL, David Carlisle | Date | RE: [xsl] reccursive sum ?, Ricaud Matthieu |
Month |