|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XSL problems with special characters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|