Hi,
I am trying to write an XSLT to delete all comments in an XSL-FO file. My file is about 25,000 lines of code. I need to delete all the verbose comments. I tried:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
exclude-result-prefixes="xs fn">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:variable name="XML1" select="/"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
<xsl:template match="*">
<xsl:copy-of select="@*"/>
</xsl:template>
</xsl:stylesheet>
But this only returns the <fo> namespace, but not all the <xsl>.
thanks for the help.