xsl-list
[Top] [All Lists]

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

2014-03-29 04:28:18
Hi Folks,

In the following template rule is an implicit sequence constructor. The 
sequence constructor expresses this: "Show the value of Title, then show the 
value of Author."

    <xsl:template match="Book">
        <xsl:value-of select="Title" />
        <xsl:value-of select="Author" />
    </xsl:template>

Is there a way to explicitly show the sequence constructor?

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?

/Roger

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>