xsl-list
[Top] [All Lists]

[xsl] Selecting from a sequence

2015-02-05 12:31:53
Hey All,
I have a logic that says :

if $a found , then use it, else use $b.
I can do this like

<xsl:value-of select = "if(string($a)) then $a else $b"/>

Can I do something like
<xsl:value-of select = "($a,$b)[1]"/>

Not sure , when this will work and when it wont. Or will it work at all..
--~----------------------------------------------------------------
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>