xsl-list
[Top] [All Lists]

Re: character replacement

2005-01-07 08:55:26
Thanks this helps a lot.

Sven

António Mota wrote:

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(_dot_)waibel(_at_)imbus(_dot_)de> wrote:

Hello,

i want to replace in my xml file all occurrences of € 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(.,'€','&#8364;')"/>
</xsl:template>

or

<xsl:template match="@*|*">
       <xsl:value-of select="replace(.,'€','&#8364;')"/>
</xsl:template>
but the function replace is not recognized

Does anybody know how to get this working?

thanks and best regards
Sven

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>