Eric Herlitz
Eric Herlitz

Reputation: 26257

XSLT or statement not working properly

I'm having issues with this test in xslt

<xsl:if test="(count(dsQueryResponse/Rows/Row) == 0) or (dsQueryResponse/Rows/Row[1]/@Process != '')">
    <textarea>
         ....
    </textarea>
</xsl:if>

I'd like to allow the textarea to be displayed if

Upvotes: 0

Views: 150

Answers (1)

Erlock
Erlock

Reputation: 1968

== is not a valid XPath operator. For testing equality, just use =.

<xsl:if test="(count(dsQueryResponse/Rows/Row) = 0) or (dsQueryResponse/Rows/Row[1]/@Process != '')">
    <textarea>
         ....
    </textarea>
</xsl:if>

Upvotes: 5

Related Questions