Subject: Check for Element existence within a predicate
From: "John Smith" <debrief@xxxxxxxxx>
Date: Mon, 27 Oct 2008 13:50:20 +0000
|
Hello,
Is it possible to check whether a node exist from within a predicate.
what I am trying to do is:
<xsl:if test="count(parent::aaa/preceding-sibling::bbb/ppp[@id = $pId
and not(exists(extraChildNode))]/zzz) > count(yyy)">
So I want to count the "zzz" child elements of "ppp" but only for the
"ppp" element that does not have "extraChildNode" as a child.
Thanks,
J
|