|
Subject: [xsl] Nesting predicates and context node From: Martin Kupisch <Kupisch@xxxxxxxxxxxxxx> Date: Mon, 18 Nov 2002 10:42:22 +0100 |
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[@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@xxxxxxxxxxxxxx
Internet: http://www.do.isst.fhg.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] stability with variables, Jarno . Elovirta | Thread | Re: [xsl] Nesting predicates and co, David Carlisle |
| RE: [xsl] not(not() and not()), Yates, Danny (ANTS) | Date | Re: [xsl] Nesting predicates and co, David Carlisle |
| Month |