[Home] [By Thread] [By Date] [Recent Entries]
Szabo, Patrick (LNG-VIE) wrote:
I'm using XSLT 2.0 and Saxon 9 Im trying to replace certain chars with entities like this: Well in an XML document like an XSLT stylesheet 'ß' is the same as writing 'C' so you are replacing each character with itself with your code. If you want to replace certain characters with numeric character references in the serialized output of an XSLT 2.0 transformation then you can achieve that with a character map: http://www.w3.org/TR/xslt20/#character-maps <xsl:character-map name="map1">
<xsl:output-character character="C" string="&#223;"/>
...
</xsl:character-map><xsl:output use-character-maps="map1"/> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



