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

Relative path

Subject: Relative path
From: "Giancarlo Rossi" <giancarlo_rossi@xxxxxxxxxx>
Date: Sat, 6 Sep 2003 17:15:02 +0200
path relative
Hi Guys I'm becoming crazy about get a relative path 
in a for each cycle.

I have this
root:="/CommandList/CheckRouting/RouterList/Router/GroupList/Group

group could contain  the following childnode:

OutwardList/Outward and ReturnList/Return

In this cycle I need to display all the Outward/Id and the relative value in
Return/Id

But I get this values:

Outward/Id       ---  Return/Id      
OSJS0EYYLYIA8CW7 --- 6BD4GM0RZ7EFPAON
4XF58J3G9795GQAO --- 6BD4GM0RZ7EFPAON
FB9ZW0FDS0RJ0RXI --- 6BD4GM0RZ7EFPAON
XA848KQXPOI76WM5 --- 6BD4GM0RZ7EFPAON


The Return/Id are the same for all the cycle.
It's wrong.


The code is:

<xsl:variable name="rootOW"
select="/CommandList/CheckRouting/RouterList/Router/GroupList/Group/OutwardL
ist/Outward" />
<xsl:for-each select="$rootOW" >
<xsl:sort select="Price/Amount" data-type="number" order="ascending" />
<xsl:value-of select="Id"/> --- <xsl:value-of
select="../..//ReturnList/Return/Id"/><br/>
</xsl:for-each>

the document xml

www.lastminutesud.it/TEST/rt_test.xml

I hope you can help me.

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.