XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 9th, 2004, 04:20 PM
andrew_1234 andrew_1234 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 andrew_1234 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 31 sec
Reputation Power: 0
XSL problems with special characters

I have an XML file that has some non English characters in it, and I'm trying to use XSL to display it.

For example, in my XML file I have the following entry,
<Comp>Compañiade Seguros, S.A.</Comp>

but the XSL line below..
<td><xsl:value-of select="Comp"/> </td>

gives me..
<td>Compañiade Seguros, S.A.</td>

Is there a way to 'fix' my XSL statement, so it will dispplay exactly what is in the XML file ?

thanks

Reply With Quote
  #2  
Old August 16th, 2004, 10:59 AM
NotGoddess's Avatar
NotGoddess NotGoddess is offline
Kung-fu Kitty
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 350 NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 9 m 2 sec
Reputation Power: 10
Send a message via AIM to NotGoddess
Check your encoding values. XML defaults to utf-8 (if I remember correctly) which may be different from the encoding you used to create your xml file. You should either match those up or use the entity code for special characters.

Check out http://www.dpawson.co.uk/xsl/characters.html
for some info/links on characters.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XSL problems with special characters


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT