xsl-list
[Top] [All Lists]

Re: [xsl] Fwd: XSLT 2.0 Determining Position of Sequence Item During "for expression" evaluation

2007-03-18 09:48:04
John McGowan wrote:
On 3/16/07, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
>
> Page1 > Page2 > Page3
>

string-join(("Page1","Page2","Page3"), ' > ')

Ah Ha.. now that's an elegant way of doing it... I hadn't come across
the string-join function... makes the "for" expression unnecessary...

FYI:

<xsl:value-of select="('Page1', 'Page2', 'Page3')" separator=">" />

does just about the same as string-join. Depending on context, either can be more suitable, of course.

-- Abel

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