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

Preceding siblings test

Subject: Preceding siblings test
From: "Hintz, David" <david.hintz@xxxxxxxxxxx>
Date: Tue, 14 Sep 2010 11:12:29 -0400
 Preceding siblings test
Hi,

I'm still a novice at XSLT and am having a problem coming up with a test for
elements preceding a particular element, but only up to the first occurrence
of the same (or parent) element.  For example, in this XML:

<list>
<a/>
<item>...</item>
<b/><b/><a/>
<item>...</item>
<item>...</item>
<a/><a/>
<item>...</item>
</list>

Assume in this example, <a> and <b> elements can occur before each item (any
number of each).  When I start processing an <item>, how do I get a list of
just those nodes before the first preceding <item> or parent <list> element?

Thanks,
Dave Hintz
Siemens

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.