Also... the & "ampersand" breaks my XML. Uggg, frustrating. Not sure how
to get this to work. Here is what I have for my find/replace XML source:
<?xml version="1.0" encoding="UT-8"?>
<replace xmlns:foo="http:www.meetscoresonline.com/foo">
<foo:special_characters>
<foo:char>_</foo:char>
<foo:char>%</foo:char>
<foo:char>$</foo:char>
<foo:char>{</foo:char>
<foo:char>}</foo:char>
<foo:char>&</foo:char>
</foo:special_characters>
<foo:string_replacement>
<foo:search>
<foo:find>±</foo:find>
<foo:replace>$\pm$</foo:replace>
</foo:search>
<foo:search>
<foo:find>°</foo:find>
<foo:replace>$\degree$</foo:replace>
</foo:search>
<foo:search>
<foo:find>©</foo:find>
<foo:replace>\copyright</foo:replace>
</foo:search>
<foo:search>
<foo:find>¶</foo:find>
<foo:replace>$\mathbb{P}$</foo:replace>
</foo:search>
</foo:string_replacement>
</replace>
----- Original Message -----
From: "Karl J. Stubsjoen" <karl(_at_)azprogolf(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, November 03, 2003 12:38 PM
Subject: [xsl] String Replace
Hello,
I really like Jenny's proposed solution to string replace but I don't know
anything about namespaces and am a little lost. I'm not sure how to set
up
the foo: find/replace XML source and am not sure how to properly declare
namespaces in the XML and XSL documents. Could someone help please?
Thanks!
Karl
http://www.dpawson.co.uk/xsl/sect2/StringReplace.html#d7865e13
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list