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

To find out immediate following tag(S)

Subject: To find out immediate following tag(S)
From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Mon, 06 Oct 2008 17:43:27 +0530
 To find out immediate following tag(S)
Hi List you people has suggested that one can find out immediate following TAG by following-sibling::*[1][self::a1]. Just to extend the topic, how we will find out all the immediate siblings.

Input
<a>first</a>
<a1>second</a1>
<a1>third</a1>
<a>fourth
<a1>fifth</a1>
<b1>sixth</b1>
</a>
<a1>seven</a1>
<a1>eight</a1>
<a>nine</a>
<b1>ten</b1>
<a1>ele</a1>

OUTPUT
<a>first
second
third</a>
<a>fourth
<a1>fifth</a1>
<b1>sixth</b1>
seven
eight</a>
<a>nine</a>
<b1>ten</b1>
<a1>ele</a1>


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.