Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2008, 10:40 PM
Authorized User
 
Join Date: Jul 2008
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSL: Currency symbol Euro


XSLT: Version 1.0
Platform: Windows XP

How to print the Currency symbol Euro in XSL1.0

Requiremnet: Converting xml to ASCII file with printing euro symbol.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:text>#x20a0;</xsl:text>

Output: â‚ ( Is the symbol is right in ascii format, not sure how to print the euro symbol in ascii format). Did any one tried the same?
 
Old August 12th, 2008, 01:20 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Depends on what you want to do. If you just want to output the Euro symbol then just type it on keyboard if possible. On mine it's Ctrl+Alt+4. The Euro character reference is &-#-x-2-0-a-c-; (without the dashes).

--

Joe (Microsoft MVP - XML)
 
Old August 12th, 2008, 03:00 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Also, there is no such character as the Euro symbol in ASCII. ASCII is only a 128 sized character set.

Your encoding for the above XML file is UTF-8 (hence why you've written encoding="UTF-8").

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
show numeric value as 102,34 (EURO money) crmpicco Perl 1 May 11th, 2008 07:05 AM
pound symbol in XSL Velissarios XSLT 15 January 19th, 2006 02:16 PM
dual use of the + symbol Martyn JSP Basics 0 February 19th, 2004 07:35 AM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.