I have the following template in an XSL file. I am trying to get to the attribute of the 'answer' elememt and compare in using an <xsl:choose> tag. I know my code it getting into here b/c if I put something above <xsl:choose>, it prints out.
How do I select the value of an attribute? It never prints out the <textbox></textbox> element.
Thanks,
Kyle
**Template**
<xsl:template match='answer'>
<xsl:choose>
<xsl:when test="@displaytype='2'">
<textbox></textbox>
</xsl:when>
</xsl:choose>
</xsl:template>
How do I select the value of an attribute? It never prints out the <textbox></textbox> element.
Thanks,
Kyle
**Template**
<xsl:template match='answer'>
<xsl:choose>
<xsl:when test="@displaytype='2'">
<textbox></textbox>
</xsl:when>
</xsl:choose>
</xsl:template>