John Smith wrote:
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[(_at_)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.
As far as I can see that should work. Even doing
not(extraChildNode)
should suffice and have the advantage of working with XSLT 1.0.
--
Martin Honnen
http://JavaScript.FAQTs.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--