[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

replacing a string in a nodeset

Subject: replacing a string in a nodeset
From: "Todd Binder" <todd_binder@xxxxxxxxxxx>
Date: Mon, 14 Jan 2002 18:57:05 -0500
replace from node to string
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@xxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.