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

Getting previous node in nodeset

Subject: Getting previous node in nodeset
From: Steve Fogel <STEVE.FOGEL@xxxxxxxxxx>
Date: Thu, 21 Apr 2011 18:28:47 -0700 (PDT)
 Getting previous node in nodeset
Hi, all...

Would appreciate a suggestion:

If:

- I have a node set in the variable $nodelist
- and I have a single node in the variable $mynode
- and the node in $mynode is a member of $nodelist

then in XSLT 2.0, how do I set a variable to contain the node that is previous
to $mynode in $nodelist?

For simplicity and a quick answer, you can assume that all nodes in $nodelist
are siblings, but in reality, $nodelist contains <topicref>s from a DITA map,
so the previous node could be a sibling, a parent, or the child of the
previous sibling.

Many thanks

Steve Fogel
Information Architect, Oracle Database
Oracle Corporation

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.