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

RE: XPATH question

Subject: RE: XPATH question
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 7 Aug 2003 21:52:37 +0100
RE:  XPATH question
> Now, I can do this if I select the sumStat matching my 
> criteria and then its 
> parent, something like 
> select="fullPathToSumStat/sumStat[@type='vald'][. 
> &gt; 4]/parent::*" (untested)
> 
> but is there some way to do this avoiding using an axis?

You can't do anything in XPath without using an axis, but you can avoid
going down and then back up:

fullPathToSumStat[sumStat[@type='vald'][. &gt; 4]]

This expression uses the child axis twice, the attribute axis once, and
the self axis once.

Michael Kay


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


Current Thread
  • XPATH question
    • I-Lin Kuo - Thu, 7 Aug 2003 11:30:30 -0400 (EDT)
      • Lars Huttar - Thu, 7 Aug 2003 15:36:52 -0400 (EDT)
      • Michael Kay - Thu, 7 Aug 2003 16:51:48 -0400 (EDT) <=
      • <Possible follow-ups>
      • Andrew Welch - Thu, 7 Aug 2003 12:05:14 -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.