Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 11th, 2008, 10:40 PM
Authorized User
 
Join Date: Jul 2008
Location: , , .
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?
Reply With Quote
  #2 (permalink)  
Old August 12th, 2008, 01:20 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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)
Reply With Quote
  #3 (permalink)  
Old August 12th, 2008, 03:00 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
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 -/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:48 PM.


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