Subject: RE: [xsl] How to Validate an XSL From: "Willink, Ed" <Ed.Willink@xxxxxxxxxxxxxxx> Date: Thu, 4 Mar 2004 10:16:46 -0000 |
Hi Animesh The XSLT 2.0 Working Draft incorporates a (non-normative) XSD, so you should be able to validate using it. Regards Ed Willink ------------------------------------------------------------------------ E.D.Willink, Email: mailto:EdWillink@xxxxxxx Thales Research and Technology (UK) Ltd, Tel: +44 118 923 8278 (direct) Worton Drive, or +44 118 986 8601 (ext 8278) Worton Grange Business Park, Fax: +44 118 923 8399 Reading, RG2 0SB ENGLAND http://www.computing.surrey.ac.uk/personal/pg/E.Willink ------------------------------------------------------------------------ > -----Original Message----- > From: Animesh Sharma [mailto:asharma@xxxxxxxxxxxxxxxx] > Sent: 04 March 2004 09:44 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] How to Validate an XSL > > > Hi, > > Is there an way through which I can validate whether an given > XSL is valid or not programitically. > > I have followin XSL: > <?xml version= "1.0" encoding= "UTF-8" ?> > <xsl:stylesheet version= "1.0" xmlns:xsl= > "http://www.w3.org/1999/XSL/Transform" xmlns:fo= > "http://www.w3.org/1999/XSL/Format"> > <xsl:output encoding="UTF-8" method="xml"/> > <xsl:template > match="//body/root/form/div/center/table[position()=2]/tbody/t > r[position()=1]/td[position()=8]/input" priority="1"/> > > <xsl:template > match="//body/root/form/div/center/table[position()=2]/tbody/t > r[position()=1]/input[position()=1]" priority="1"/> > <xsl:template match="*|text()|@*"> > <xsl:copy> > <xsl:apply-templates select="*|text()|@*"/> > </xsl:copy> > </xsl:template> > Random Content > </xsl:stylesheet > > > > This is a perfect XML. and can be loaded into DOM object. but > once I tried to apply this XSL over an XML it gives me an > error because it is not a valid XSL. See text appears in the last. > > Thanks in anticipatio of help, > > Animesh > > 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, Andrew Curry | Thread | RE: [xsl] How to Validate an XSL, Animesh Sharma |
Re: [xsl] How to Validate an XSL, Richard | Date | Re: [xsl] How to Validate an XSL, George Cristian Bina |
Month |