[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: XPath question
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 3 Feb 2003 23:41:46 -0000
> I have struggled in vain today to 
> come up with an XPath expression which would tell me how many 
> elements are on the preceding-sibling axis of the parent of a 
> given node. Can anyone straighten me out on this?
> 

count(../preceding-sibling::node())

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread
  • XPath question
    • cknell - Mon, 3 Feb 2003 17:20:38 -0500 (EST)
      • David Carlisle - Mon, 3 Feb 2003 17:41:21 -0500 (EST)
      • Zack Brown - Mon, 3 Feb 2003 17:47:04 -0500 (EST)
      • Michael Kay - Mon, 3 Feb 2003 18:40:47 -0500 (EST) <=
      • <Possible follow-ups>
      • Andy J. Cupp - Mon, 3 Feb 2003 17:49:51 -0500 (EST)
      • Ross Ken - Mon, 3 Feb 2003 17:57:31 -0500 (EST)
      • cknell - Tue, 4 Feb 2003 10:36:08 -0500 (EST)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member