This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
replacing a string in a nodeset
- From: "Todd Binder" <todd_binder at hotmail dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 14 Jan 2002 18:57:05 -0500
- Subject: [xsl] replacing a string in a nodeset
- Reply-to: xsl-list at lists dot mulberrytech dot com
I am looking to take a series of nodes, replace some strings, and end up
with a series of nodes.
basically what I have is the following
<date>xxxx0101</date>
<date>20020405</date>
<date>xxxx0706</date>
I want to replace all the 'xxxx' with 2002, and end up with 3 node nodeset
that I can then use elsewhere in my XSL (I would store it in a variable)
I am able to grab the nodes with xxxx in them easy enough
<xsl:variable name='rlist' select="//date[contains(.,'xxxx')]"/>
rlist will be a 2 node node-set.
Can I replace the strings and then do a union (|) of rlist and my base
nodeset?
- todd
todd_binder@hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list