xsl-list
[Top] [All Lists]

[xsl] tokenizing comma separated string with quotes

2007-02-21 12:06:51
Given the input

<elem>"foo, bar", baz, bom</elem>

Is there a nice one liner  / technique to return the three tokens
"foo, bar"  "baz" "bom"

eg:

<root>
 <token>foo, bar</token>
 <token>baz</token>
 <token>bom</token>
</root>

I can't see the answer for all the apparent quote escaping required...

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