Subject: Re: [xsl] Trouble transforming special characters From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 10 Aug 2010 17:42:59 +0200 |
Hello,
I am transforming XML to HTML. The XML source has:
Peña
which should transform and display as Peqa.
Instead, the 'ñ' gets transformed into a '?'.
Same problem with mdash
Processor Information: XSL version: 1 Vendor: Microsoft Vendor URL: http://www.microsoft.com
Using VS2008, C#, .NET 3.5
My XSLT begins with:
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:space="default" xmlns:l="urn::tlc.state.tx.us.salsa.legdoc"> <xsl:output method="html" encoding="UTF-8" use-character-maps="cm1" indent="yes"/> <xsl:character-map name="cm1"> <xsl:output-character character=" " string="&nbsp;"/> <xsl:output-character character="—" string="&mdash;"/> <xsl:output-character character="é" string="&eacute;"/> <xsl:output-character character="ñ" string="&ntilde;"/> </xsl:character-map>
Note that when I do the transformation in XMLSpy, it works fine. Using it in code, though, produces a '?'.
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Trouble transforming special , Craig Whisenhunt | Thread | Re: [xsl] Trouble transforming spec, Craig Whisenhunt |
[xsl] Trouble transforming special , Craig Whisenhunt | Date | Re: [xsl] Trouble transforming spec, Craig Whisenhunt |
Month |