xsl-list
[Top] [All Lists]

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

2014-03-29 05:17:27

On 29 Mar 2014, at 09:28, Costello, Roger L. <costello(_at_)mitre(_dot_)org> 
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


--~------------------------------------------------------------------
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>