[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Nesting predicates and context node

Subject: Nesting predicates and context node
From: Martin Kupisch <Kupisch@xxxxxxxxxxxxxx>
Date: Mon, 18 Nov 2002 10:42:22 +0100
xml predicate outer node
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.