Quote:
quote:Originally posted by pupu79
<xsl:template match="/">
/*
<xsl:copy-of select="."/>
*/
</xsl:template>
I think the hard thing is doing the detection recursively. Because I can't assume any knowledge on the tree structure.
|
okay.
<xsl:template match="/">
/*
<xsl:copy>
<xsl:apply-templates select="node()"/>
</xsl:copy>
*/
</xsl:template>
<xsl:template match="node()">
<xsl:if test="contains(., '*/')>Warning, extra end comment in source</xsl:if>
<xsl:copy>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
I'm not sure where you want your warning though.