XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
koby aharonSubject: Get nodes from a range
Author: koby aharon
Date: 07 Mar 2007 07:33 AM
Hi,
i want to know if there is any way that i can get nodes from a starting position to another node that follows the current node.

all the nodes has the same name except the last node that has a different name.

for example, if i have the following xml file:

<root>
<a id="1">
<a id="1">
<a id="1">
<a id="1">
<b>
<a id="2">
<a id="2">
<a id="2">
...
</root>

if i'm currently on the first "a" node, then i want to get all the "a" nodes until the first b node (all the "a" nodes with id 1).

remark: the id attribute does not appear in the real xml file. i added it for the example so that it will be easier to explain what i need.

Posttop
Ivan PedruzziSubject: Get nodes from a range
Author: Ivan Pedruzzi
Date: 09 Mar 2007 01:00 AM
Originally Posted: 09 Mar 2007 12:58 AM
The attached example assumes that you could have more then one "b" and you are interested only to the first group


Hope this helps
Ivan Pedruzzi
Stylus Studio Team
http://www.stylusstudio.com/xml_download.html


Documentgrouping.xml


Unknowngrouping.xsl

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.