[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How to show explicitly the implicit sequence constructor?


Subject: Re: [xsl] How to show explicitly the implicit sequence constructor?
From: John Lumley <john@xxxxxxxxxxxx>
Date: Sat, 29 Mar 2014 09:58:15 +0000

> On 29 Mar 2014, at 09:28, "Costello, Roger L." <costello@xxxxxxxxx> wrote
>
> For example, this would be a neat way to explicitly show the sequence
constructor:
>
>    <xsl:template match="Book">
>        <xsl:sequence>
>            <xsl:value-of select="Title" />
>            <xsl:value-of select="Author" />
>        </xsl:sequence>
>    </xsl:template>
>
> Unfortunately that is not legal.
>
> Is there a way to explicitly show the sequence constructor?

My reading of the 3.0 Working Draft suggests that that construct should be
legal - <xsl:sequence> can contain a sequence constructor if no @select. Of
course you could indicate the sequence constructor inside the <xsl:sequence>
with another <xsl:sequence> ...... ;-)

John


Current Thread