Converter Iso8859-Utf8
From Fxp Wiki
Cette feuille de style permet de convertir des documents encodés iso-8859-1 en documents charset utf-8
This stylesheet allows you to convert documents encoded iso-8859-1 to documents charset utf-8
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http:www.w3.org/1999/XSL/Transform" xmlns="blo" xmlns:cib="http:cib.wanadoo.fr/xmlns/cib" version="1.0"> <xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes" /> <xsl:template match="/"> <div style="color:red;">Ca marche</div> <xsl:apply-templates/> </xsl:template> <xsl:template match="//part"> <br /> <xsl:apply-templates/> <br/> </xsl:template> <xsl:template match="*"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="@*"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> </xsl:stylesheet>
Categories: Xml | Xsl | Utf8 | Encoding
