xsl-list
[Top] [All Lists]

RE: If nodeset does NOT include

2002-08-30 15:04:58
I want to call a template only if a nodeset does
not contain a match for a variable, ie:

<xsl:if test="(.//InqInfo/Member_Id != $listfor)">
                      <xsl:call-template
name="Recipbutton">


This means "if .//InqInfo/Member_Id contains a node that is not equal to
$listfor".

You want

<xsl:if test="not(.//InqInfo/Member_Id = $listfor)">

which means "if .//InqInfo/Member_Id does not contain a node that is
equal to $listfor".

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>