Take a look at the str:tokenize template at www.exslt.org (strings module).
This provides a recursive named template that you can incorporate into your
stylesheet.
Michael Kay
Saxonica
On 4 Mar 2019, at 22:44, Charlie0 charlieo0(_at_)comcast(_dot_)net
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
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
--~--