This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Search and Replace in XSLT


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]