Subject: Re: [xsl] xslt 2, forward compatibility mode. From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: 05 Mar 2003 05:24:14 +0000 |
>>>>> "Michael" == Michael Kay <mhk@xxxxxxxxx> writes: Michael> XSLT 2.0 allows the [xsl:]version attribute on any Michael> element. XSLT 1.0 allows it only on the xsl:stylesheet Michael> element or a literal result element. Which is therefore not backwards compatible, and so breaks the fallback future-proofing (as in the example) >> That does not work. >> >> % cat fallback.xsl <?xml version="1.0" encoding="utf-8"?> >> <xsl:stylesheet version="1.0" >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >> >> <xsl:output method="xml" indent="yes"/> >> >> <xsl:template match="/" version="3.0"> <result> >> <xsl:perform-magic select="magic-dust"> <xsl:fallback>Sorry, we >> don't do magic</xsl:fallback> </xsl:perform-magic> </result> >> </xsl:template> >> >> </xsl:stylesheet> >> >> % saxon dummy.xml fallback.xsl Error at xsl:template on line 7 >> of file:/opus/home/mike/xml/test/fallback.xsl: Attribute >> version is not allowed on this element Error at >> xsl:perform-magic on line 9 of >> file:/opus/home/mike/xml/test/fallback.xsl: Unknown XSLT >> element: perform-magic Transformation failed: Failed to compile >> stylesheet. 2 errors detected. -- Colin Paul Adams Preston Lancashire XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xslt 2, forward compatibi, Michael Kay | Thread | RE: [xsl] xslt 2, forward compatibi, David . Pawson |
RE: [xsl] security & document() ?, Michael Kay | Date | [xsl] Re: Re: Creating a XSL to ret, Dimitre Novatchev |
Month |