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
kranthi ThakkellapatiSubject: query on xslt for-each
Author: kranthi Thakkellapati
Date: 29 Dec 2011 09:19 AM
<UserData id="id9">
<UserValue value="" title="p2IACUCNumber">
<UserList id="id8" type="list">
<Item value="12345" />
<Item value="2608" />
<UserValue value="PSD0000000020" title="item_id" />
for this value of PSD0000000020 I want all the Item Values
<Item value="12345" /> ..how to loop it..i am attaching the complete xml for reference


Ivan PedruzziSubject: query on xslt for-each
Author: Ivan Pedruzzi
Date: 29 Dec 2011 12:12 PM

Hi Kranthi,

You have to select all UserValue elements that match the criteria using a predicate, then navigate backward, see attached transformation

Hope this helps
Ivan Pedruzzi
Stylus Studio Team


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!  

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.