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

RE: Navigation using XPath

Subject: RE: Navigation using XPath
From: "Chitra Lalita Madhwacharyula" <iscp1059@xxxxxxxxxx>
Date: Wed, 13 Nov 2002 17:46:26 +0800
xpath previous element
Thanx for the info. But what I want to know is if we don't know the
exact position of the current element like *[1] how do I go the next or
previous element from the current position (assuming that I don't know
the exact position number). Can I say something like 

*[position()=current()] OR following::*[position()=current()] OR
preceding::*[position()=current()]

Will it work ?

Thanx,
Chitra

-----Original Message-----
From: Jarno.Elovirta@xxxxxxxxx [mailto:Jarno.Elovirta@xxxxxxxxx] 
Sent: Wednesday, November 13, 2002 5:10 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Navigation using XPath


Hi,

> 1> Go to the first element (e.g like position() = first()..)

First of what? Of document

/*

or first child element

*[1]

> 2> Go to the next element after the current element (e.g position() =
> next().. )

following::*[1]

> 3> 2> Go to the previous element after the current element (e.g
> position() = previous().. )

preceding::*[1]

> 4> Go to the next sibling element from the current position.

following-sibling::*[1]

Jarno - In Strict Confidence: Zauberschloss (mechanical fairy tale rmx)

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


 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.