File: Data.xml
<?xml-stylesheet href="Transform.xslt" type="text/xsl"?>
<state member="true" xmlns="http://www.java2java.com">Belgium</state>
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="xml" indent="yes" encoding="US-ASCII" />
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Output:
<?xml version="1.0" encoding="US-ASCII"?>
<?xml-stylesheet?><state xmlns="http://www.java2java.com" member="true">Belgium</state>
|