|
Subject: Re: [xsl] String Replace From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx> Date: Mon, 3 Nov 2003 13:14:10 -0700 |
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@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] String Replace, Karl J. Stubsjoen | Thread | Re: [xsl] String Replace, J.Pietschmann |
| [xsl] Re: Re: Re: Re: Converting sp, Dimitre Novatchev | Date | [xsl] Re: Re: Re: Re: Converting sp, Dimitre Novatchev |
| Month |