Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting Attributes in XSL

Status
Not open for further replies.

knovak

Programmer
Dec 18, 2001
17
US
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=&quot;@displaytype='2'&quot;>
<textbox></textbox>
</xsl:when>
</xsl:choose>
</xsl:template>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top