xsl-list
[Top] [All Lists]

Nesting predicates and context node

2002-11-18 02:42:22
Hello everyone,

how do I use nested predicates and refer from the inner predicate to the
current node of the outer predicate?

For example:
    //product[count(preceding-sibling::product[(_at_)id= ? ]) < 3]

The question mark stands for an expression that selects the @id of the
outer context node. The 3 at the end is a variable that gets set from an
application actually. This expression would be used to set the value of
an xsl:variable. I need to to know if it is possible to refer to the
current node of the outer predicate or if I can achieve a solution wth a
completely different approach.

Thanks for any help. Martin.


--

Martin Kupisch
Fraunhofer Institut für Software- und Systemtechnik

Emil-Figge-Str. 91
44227 Dortmund

Tel.: +49 +231 97677 - 308
E-mail  : kupisch(_at_)do(_dot_)isst(_dot_)fhg(_dot_)de
Internet: http://www.do.isst.fhg.de



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



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