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

finding elements lowest in hierarchy?

Subject: finding elements lowest in hierarchy?
From: "james walker" <jameswalkerandy@xxxxxxxxxxx>
Date: Tue, 27 Jan 2004 12:41:41 +0000
finding elements in xml
I have several template matches at several stages in a hierarchy of elements, i am trying to find an xpath staement to find out if any of a particuler elements lowest children have an attirbute called "minimum".
e.g. given this hierarchy
<1>
<2>
<3><4 minimum="true"></4><4></4><4 minimum="true"></4><4></4></3>
<3><4></4><4></4></3>
</2>
<2>
<3><4></4><4></4><4></4></3>
</2>
</1>


e.g. when it template matches for "2" i am trying to say if any "4" elements below the current element have a minimum attribute then execute some code.....
i would like to do the smae for other elemnts such as "3"-- if there are any "4" elements below the current element have a minimum attribute then execute some code


does anyone know how to find out whether any of the lowest children in a hierarchy have a particuler attribute??
cheers
james walker


_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger



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.