This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How does xsl:if work?


<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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]