Subject: Re: [xsl] Concatenating string values of a sequence From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Tue, 4 Aug 2009 21:21:29 +0100 |
2009/8/4 Christopher R. Maden <crism@xxxxxxxxx>: > Im finally getting around to XSLT 2.0 and having fun with grouping and > tokenizing. > > But Im stymied on this: I need to tokenize a string that may span > multiple text nodes or elements. The tokenize() function wont take a > sequence of more than one as its first argument, and I cant figure out > how to concatenate the values of the nodes in the set in situ (Ive even > tried a FLWR expression!). > > tokenize( current-group()[position() > 1], '\s*;\s*' ) > > is what I have right now. Ive tried wrapping the sequence in concat() > (which wants more than one argument), in string-join(), and a FLWR that > just resulted in a sequence of strings rather than a concatenation. how about: current-group()[position() > 1]/tokenize(. , '\s*;\s*' ) -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Concatenating string valu, Christopher R. Maden | Thread | [xsl] Searching text within a node, Lee |
Re: [xsl] Splitting file into N-siz, Martynas Jusevicius | Date | Re: [xsl] Splitting file into N-siz, Hermann Stamm-Wilbra |
Month |