[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xslt 2, forward compatibility mode.

Subject: Re: xslt 2, forward compatibility mode.
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 05 Mar 2003 05:24:14 +0000
example forward in xsl
>>>>> "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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.