Search and Replace in XSLT

Subject: Search and Replace in XSLT
From: "ciaran byrne" <ciaran.byrne@xxxxxxx>
Date: Fri, 11 Aug 2000 11:09:46 +0100
Hi all,
	Is anybody aware of a search and
replace technique in XSLT.

I've been attempting to use the search and
replace in Michael Kay's Book (p518-519) where recursion
is used to perform the replacing.

This won't work for me in the following case:
let's say I have:

<img src="x.bmp" alt="[tag]"/>

and I want to replace '[' with '<' to get the output

<img src="x.bmp">
<tag/>

using Michaels' technique I get the usual entity problem in XML
i.e. the output becomes:

<img src="x.bmp">
&lt;tag/&lt;

which is no good to me as I need the proper tag.
Any suggestions ??
C.


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


Current Thread