Mega Code Archive

 
Categories / XML Tutorial / XSLT StyleSheet
 

In ISO-8859-1

File: Data.xml <?xml version="1.0" encoding="utf-8"?> <html>   <head>     <title>HTML</title>   </head>   <body>     <h1>HTML output</h1>     Å½   </body> </html> File: Transform.xslt <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet       version="1.0"       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">     <xsl:output method="html" encoding="ISO-8859-1"/>     <xsl:template match="/">       <xsl:copy-of select="/source/*"/>     </xsl:template> </xsl:stylesheet>