I'm so glad I included the "Is this a correct..." part in my original post :-/
New try, thanks to the great replies from Lars and David:
count(
ancestor-or-self::A[ . >> current()/ancestor::node()[self::B or
self::document-node()][1] ]
)
Am I getting closer with this...?
-Christian
--~------------------------------------------------------------------
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>
--~--