xsl-list
[Top] [All Lists]

[xsl] separating string values without tokenize()

2019-03-04 16:43:52
I am sure this has been addressed here previously, but I can't find what I'm looking for in the archive.

I have this string:

'R0052, R0055, R0057'

I need to create this XML output:

<xref figid="R0052"/>, <xref figid="R0055"/>, <xref figid="R0057"/>

I am restricted to using XSL 1.0. (this is an easy problem for 2.0, but I cannot use the tokenize() function).

This specific string has three values, but the string could contain two or more comma (and space) delimited values.

How do I get this done with XSLT 1.0?

Charlie O

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