xsl-list
[Top] [All Lists]

Re: [xsl] Selecting from a sequence

2015-02-05 13:53:01
<xsl:variable name="foo1"/>

 <xsl:variable name="bar1" select= "'world'"/>


 <xsl:value-of select="($foo,$bar)[1]"/> <!--first-->

   <xsl:value-of select="(string($foo1),$bar1)[1]"/><!--Second-->

First worked but second did not work
I was expecting "World" to be output to the result ..

Oh no, string($foo1) gives you an empty string, which is a valid first member 
of the sequence, so that is what you get.

- Michael
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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