Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XSLT Help and Discussion
»
Get nodes from a range
Topic
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
next
Subject:
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.
top
Subject:
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
grouping.xml
grouping.xsl
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
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 to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
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.