I need to check if there are ancestor element nodes of an
element node which contains @task=$taskNumber, so I have:
<xsl:when test="descendant::*[(_at_)task = $taskNumber]">
... do something
</xsl:when>
Your title and your code talk about testing for descendants, but your
message talks about testing for ancestors - which do you mean?
...no problem so far...but I also want to make sure that this
ancestor element node does not have an @result attribute. I
can't figure out how to do that.
Assuming you mean descendants,
test="descendant::*[(_at_)task = $tasknumber and not(@result)]"
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