xsl-list
[Top] [All Lists]

Re: [xsl] Concatenating atomic sequences

2010-06-04 09:00:32
At 2010-06-04 15:43 +0200, Martynas Jusevicius wrote:
I have several sequences of type xs:string* which I want to merge into
one. How do I do that?

I've tried the union operator, but it gives an error since it expects
node() items.

To create one string (as opposed to one sequence) use string-join() and supply your sequence of sequences (which get flattened into a single sequence) as the first argument. You then supply a string as a second argument as the separator between each of the members of the sequence.

I hope this helps.

. . . . . . . . . . . Ken



--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


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