C
cawoodm
I need an identity XSLT that does not change the incoming XML document.
The trick is that I need the entities to be preserved. My current
transform converts to the copyright symbol in the output
document.
----------------------
TEST.XML
<?xml version="1.0" encoding="windows-1252"?>
<component>
<content>
<small>© Copyright</small>
</content>
</component>
----------------------
----------------------
TEST.XSL
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput indent="yes" method="xml" encoding="windows-1252"/>
<xsl:template match="/component">
<xsl:copy-of select="content/*"/>
</xsl:template>
</xsl:stylesheet>
The trick is that I need the entities to be preserved. My current
transform converts to the copyright symbol in the output
document.
----------------------
TEST.XML
<?xml version="1.0" encoding="windows-1252"?>
<component>
<content>
<small>© Copyright</small>
</content>
</component>
----------------------
----------------------
TEST.XSL
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput indent="yes" method="xml" encoding="windows-1252"/>
<xsl:template match="/component">
<xsl:copy-of select="content/*"/>
</xsl:template>
</xsl:stylesheet>