1 <?xml version="1.0"?> 2 <!DOCTYPE SAXDTD SYSTEM "SAXdtd.dtd"> 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 4 5 <!-- Use different encoding to see entities better --> 6 <xsl:output method="xml" encoding="ISO-8859-1"/> 7 8 <xsl:template match="/"> 9 <out> 10 <head>Testing © entities &test-ent; here</head> 11 <xsl:apply-templates/> 12 </out> 13 </xsl:template> 14 15 16 <!-- From the XSLT spec: "the identity transformation can be written using xsl:copy as follows:" --> 17 <xsl:template match="@*|node()"> 18 <xsl:copy> 19 <xsl:apply-templates select="@*|node()"/> 20 </xsl:copy> 21 </xsl:template> 22 23 </xsl:stylesheet>