I would like to transform some original XML that doesn't quite work in HTML using this XSL:
However, it doesn't seem to be working. I seem to be able to properly trap the <input type="group"> tag, but it doesn't just put comments around that, which is what I want. It seems to omit it completely.
Here's an example of what I have:
And here's what I want:
Any ideas?
Monte Kalisch
Brainbench MVP for ASP
Anti-Spam Email: montek at montekcs dot com
Code:
<xsl:template match="* | text() | @*">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="input[@type = 'group']">
<xsl:comment>
<xsl:value-of select="."/>
</xsl:comment>
</xsl:template>
However, it doesn't seem to be working. I seem to be able to properly trap the <input type="group"> tag, but it doesn't just put comments around that, which is what I want. It seems to omit it completely.
Here's an example of what I have:
Code:
<input type="group" min="0" max="4"/>
And here's what I want:
Code:
<!--<input type="group" min="0" max="4"/>-->
Any ideas?
Monte Kalisch
Brainbench MVP for ASP
Anti-Spam Email: montek at montekcs dot com