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

xpath problem

Subject: xpath problem
From: Graham Seaman <graham@xxxxxxxxx>
Date: Mon, 24 Sep 2001 19:54:45 +0100 (BST)
php xpath problem
Hi,

I've got stuck on something I thought should be quite simple: I need
to select all elements of type foo which do not have an ancestor
with attribute bar.

I've been trying endless permutations, along the lines of:
 <xsl:for-each select="///foo[not(ancestor::*[@bar])]">

and none of which work... I imagine the problem is with trying to use the
ancestor axis in this expression (although the above parses ok), but I
can't see a one-line way to do it otherwise. Any suggestions?

Thanks
Graham


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


Current Thread
  • xpath problem
    • Graham Seaman - Mon, 24 Sep 2001 15:06:11 -0400 (EDT) <=

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.