R
reynard.michel
Hi,
I would like to translate an XML ISO-8859-1 document in UTF-8.
For this I wrote the following XSL
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl
utput method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
It works fine except that it does not keep the atributes.
How can I do a translation with the attributes?
Further more I've some permil il the xml. If they are written as &
permil; they get translated in a permil char but if they are written as
& #2030; which is the permil char in ISO-8859-1 it is transformed in an
unknown char. How can I do a traslate from & #2030 to & #8240; (utf-8
permil) or to a permil char?
Thank you for your help
Michel
I would like to translate an XML ISO-8859-1 document in UTF-8.
For this I wrote the following XSL
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
It works fine except that it does not keep the atributes.
How can I do a translation with the attributes?
Further more I've some permil il the xml. If they are written as &
permil; they get translated in a permil char but if they are written as
& #2030; which is the permil char in ISO-8859-1 it is transformed in an
unknown char. How can I do a traslate from & #2030 to & #8240; (utf-8
permil) or to a permil char?
Thank you for your help
Michel