Mega Code Archive

 
Categories / XML Tutorial / XSLT StyleSheet
 

Output entity

File: Data.xml <?xml version="1.0"?> <fragment>2001</fragment> File: Transform.xslt <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"   version="1.0">   <xsl:output indent="yes" />   <xsl:template match="/">     <html>       <head>         <title>Contact Info</title>       </head>       <body         style="font-size:12px; font-family: Verdana, Arial, Helvetica;">         &#169; test       </body>     </html>   </xsl:template> </xsl:stylesheet> Output: <html>    <head>       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">       <title>Contact Info</title>    </head>    <body style="font-size:12px; font-family: Verdana, Arial, Helvetica;">               Â© test                 </body> </html>