Translate Euro Sign(€) in 'EUR'

Discussion in 'XML' started by Marco W, Jun 8, 2005.

  1. Marco W

    Marco W Guest

    Hi,

    <xsl:value-of select="translate(current(),'€','EUR')" />

    only replace the euro sign with 'E' and not 'EUR'. How can I replace
    the euro sign in the string 'EUR'?
     
    Marco W, Jun 8, 2005
    #1
    1. Advertising

  2. translate only does single character translations.

    xpath 2 has a replace() function, but for xslt2 you need to use
    substring-before and substring-after to split up the string before and
    after the euro sign and insert EUR.

    Or there are several replace templates in faq and archive lists

    xsl faq has

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

    for example.

    David
     
    David Carlisle, Jun 8, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rphil

    Euro sign in .Net

    rphil, Apr 26, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    3,136
    Joerg Jooss
    Apr 28, 2005
  2. kingski

    Problem: Euro sign in sending email !

    kingski, Mar 3, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    713
    Juan T. Llibre
    Mar 4, 2006
  3. kingski

    Problem: Euro sign in send mail.

    kingski, Mar 3, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    437
    kingski
    Mar 3, 2006
  4. Yohan N. Leder
    Replies:
    11
    Views:
    1,021
    Jukka K. Korpela
    May 20, 2006
  5. eGenix Team: M.-A. Lemburg

    EuroPython 2009: Making 50 Mio. EUR per year using Python

    eGenix Team: M.-A. Lemburg, Jul 16, 2009, in forum: Python
    Replies:
    0
    Views:
    282
    eGenix Team: M.-A. Lemburg
    Jul 16, 2009
Loading...

Share This Page