W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2000

Re: Fwds Compat/Fallback Conformance Puzzles

From: James Clark <jjc@JCLARK.COM>
Date: Tue, 16 May 2000 10:25:50 +0700
Message-ID: <3920BFBE.3932C4AF@JCLARK.COM>
To: xsl-list@mulberrytech.com
CC: xsl-editors@w3.org
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
Received on Monday, 15 May 2000 23:28:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:50 GMT