xsl-list
[Top] [All Lists]

RE: Change text on given node at runtime

2003-07-23 08:44:52

From: jeff(_dot_)day(_at_)bt(_dot_)com 
[mailto:jeff(_dot_)day(_at_)bt(_dot_)com]
Sent: 23 July 2003 16:30
Subject: [xsl] Change text on given node at runtime

I would like to be able, at runtime, to parse an XML file and change 

<A>Original text</A>

to

<A>Some new text</A>


On the next occasion I might want to do this...

<F>Old text</F>

change to

<F>New text</F>

So at runtime I need to pass in two parameters that specify 
the required
node and the new text for it.


as with many things xslt, jeni's done it !

http://www.jenitennison.com/xslt/utilities/markup.html

should be able to hack this up to do your bidding.

cheers, jim fuller

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