This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How does xsl:if work?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: How does xsl:if work?
- From: "Arnold, Curt" <Curt dot Arnold at hyprotech dot com>
- Date: Fri, 2 Jun 2000 14:14:13 -0600
- Reply-To: xsl-list at mulberrytech dot com
<xsl:if test="@team=ALL">
<td class="th"> Team </td>
</xsl:if>
Your XPath is interpreted as: value of team attribute = text value of all child elements of current node with tag name "ALL", which would always be false for your example. What you apparently wanted
was:
<xsl:if test="@team='ALL'">
<td class="th"> Team </td>
</xsl:if>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list