xsl-list
[Top] [All Lists]

[xsl] How to substitute a portion of the text value of an element

2008-10-07 14:28:47
I've got an element like this:

<box:base-file-name>C:/test10/user/server/logs/server.log</box:base-file-name>

I'd like it to look like this:

<box:base-file-name>C:/other103/user/server/logs/server.log</box:base-file-name>

I'm passing in an OLD parameter that contains "c:/test10" and a NEW
parameter that contains "c:/other103" but I'm not sure how to
substitute just the OLD portion for the NEW parameter in the value of
box:base-file-name without nuking the rest of the value which I want
to preserve.

Is it possible to just change a portion of the value?

Thanks

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--