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

Re: math get maximum and subtract 1

Subject: Re: math get maximum and subtract 1
From: "sascha" <sascha@xxxxxxxxxx>
Date: Wed, 31 Jul 2002 17:11:18 +0200
xsl minus subtract
----- Original Message ----- 
From: "Jeni Tennison" <jeni@xxxxxxxxxxxxxxxx>

> In the new input, the DESCRIPTION_ITEM elements are ordered such that
> all the cells for a particular row are clustered together. The first
> of each cluster is the one whose col attribute has the value 0. The
> rest of the cells in the row are the next N DESCRIPTION_ITEMs, where N
> is the number of columns minus 1. One way you could select them is:
> 
>   . | following-sibling::DESCRIPTION_ITEM[position() &lt; $ncols]
> 
> Another way you could select them would be:
> 
>   ../DESCRIPTION_ITEM[@row = current()/@row]
> 


Ui, then it was more a syntax problem than a logical, 
'cause that's what i theoretically thought it should do.


> The latter is probably better simply because if they change the order
> on you again it will still work. On the other hand, the former
> involves less node visits, so will probably be faster with large
> tables.


How do you know all this ? :-) 
It's a small table at the moment. Still i want to learn this all...

Thank you so much,
Sascha





 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.