[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: Michael Kay <mike@xxxxxxxxxxxx> Date: Sat, 29 Mar 2014 10:17:09 +0000 |
On 29 Mar 2014, at 09:28, Costello, Roger L. <costello@xxxxxxxxx> wrote: > 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. > It becomes legal in 3.0. But there is still an implicit sequence constructor. In fact, there are now two, so you have made the "problem" worse. Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to show explicitly th, John Lumley | Thread | Re: [xsl] How to show explicitly th, David Carlisle |
Re: [xsl] How to show explicitly th, John Lumley | Date | Re: [xsl] Things that make you go H, Michael Kay |
Month |