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

Re: Fwds Compat/Fallback Conformance Puzzles

Subject: Re: Fwds Compat/Fallback Conformance Puzzles
From: James Clark <jjc@xxxxxxxxxx>
Date: Tue, 16 May 2000 10:25:50 +0700
xsl nbsp
Andrew Kimball wrote:
> 
> What is the expected behavior of a conformant processor when given each of
> the following:
> 
> 1.
> <y xsl:version="1.1">
>         <xsl:for-each select="//author">
>                 <xsl:sort-1.1 select="first-name">
>                         <xsl:fallback>
>                                 <xsl:sort select="last-name"/>
>                         </xsl:fallback>
>                 </xsl:sort-1.1>
>         </xsl:for-each>
> </y>

An XSLT processor must report an error.  The contents of xsl:fallback
must be a template.

> 2.
> <y xsl:version="1.1">
>         <xsl:text>
>                 Some text
>                 <xsl:nbsp>
>                         <xsl:fallback>
>                                 Fallback text
>                         </xsl:fallback>
>                 </xsl:nbsp>
>                 More text
>         </xsl:text>
> </y>

An XSLT processor must report an error.  The contents of xsl:text is not
a template, and there are no special forwards compatible processing
rules for elements other than for elements at the template level and
elements at the top-level.

> 3.
> <y xsl:version="1.1">
>         <xsl:apply-templates>
>                 <xsl:positional-param-1.1 select="foo">
>                         <xsl:fallback>
>                                 <xsl:with-param name="foo" select="foo"/>
>                         </xsl:fallback>
>                 </xsl:positional-param-1.1>
>         </xsl:apply-templates>
> </y>

An XSLT processor must report an error for the same reason as 2 since
the contents of xsl:apply-templates is not a template.

> 4.
> <y xsl:version="1.1">
>         <xsl:apply-imports>
>                 <xsl:with-param name="foo" select="foo">
>                         <xsl:fallback/>
>                 </xsl:with-param>
>         </xsl:apply-imports>
> </y>

An XSLT processor must report an error since xsl:with-param has a select
attribute but the content is not empty (first bullet of 11.2).

James


 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.