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

Re: Modifying the xPath order...

Subject: Re: Modifying the xPath order...
From: i92agcad@xxxxxx
Date: Mon, 01 Mar 2004 11:33:36 +0100 (MET)
xpath order
 I'm sorry... my english is very poor

 My question is... 
 
 I use a <xsl:sort> inside a <xsl:for-each> but this order (ascending) isn't 
available to use axis like (preceding:: , preceding-sibling::, etc...) 
 
 When i use this axis the order of the elements still be the order in XML 
document and i want to work with the order created with <xsl:sort> 
 
 ok?¿?
 

Mensaje citado por: Andrew Curry <andrew.curry@xxxxxxxxxxxx>:

> What are you wanting to do exacly, i think im missing your question
> ----- Original Message -----
> From: <i92agcad@xxxxxx>
> To: "Lista XSL" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Monday, March 01, 2004 9:32 AM
> Subject:  Modifying the xPath order...
> 
> 
> 
>  I have this structure in XML...
> 
>  <elements>
>   <element>5</element>
>   <element>3</element>
>   <element>6</element>
>   <element>1</element>
>  </elements>
> 
>  With XSL, i have...
> 
>  <xsl:for-each select="element">
>   <xsl:sort select="." order="ascending" data-type="number"/>
>    ...
>  </xsl:for-each>
> 
>  In this way, the elements have this order...
> 
>  position() = 1 --> element = 1
>  position() = 2 --> element = 3
>  position() = 3 --> element = 5
>  position() = 4 --> element = 6
> 
>  But ...
> 
>  preceding of element = 1 is element = 6
>  preceding of element = 3 is element = 5
>  preceding of element = 5 is element = null
>  preceding of element = 6 is element = 3
> 
>  Then, how i know that preceding of element=3 in the order is the
> element =
> 1?
> ¿?
> 
>  How i calculate the acumulated total?¿? (for the element = 5 the total
> acumulated is 1 + 3 + 5 ...)
> 
>  Thanks!!!
> 
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.