[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] character replacement


Subject: Re: [xsl] character replacement
From: António Mota <amsmota@xxxxxxxxx>
Date: Fri, 7 Jan 2005 15:53:14 +0000

Take a look at the FAQ

http://www.dpawson.co.uk/xsl/sect2/replace.html

but since youre using character entitys maybe there is another way...


On Fri, 07 Jan 2005 16:42:30 +0100, Sven Waibel <sven.waibel@xxxxxxxx> wrote:
> Hello,
>
> i want to replace in my xml file all occurrences of b, with &#8364; because
it should be display in my pdf in the right way.
>
> I tried it with
>
> <xsl:template match="@*|*">
>         <xsl:value-of select="translate(.,'b,','&#8364;')"/>
> </xsl:template>
>
> or
>
> <xsl:template match="@*|*">
>         <xsl:value-of select="replace(.,'b,','&#8364;')"/>
> </xsl:template>
> but the function replace is not recognized
>
> Does anybody know how to get this working?
>
> thanks and best regards
> Sven


Current Thread
Keywords
xml