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

Re: Re: Re: Node Selection List

Subject: Re: Re: Re: Node Selection List
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 22 Feb 2004 13:17:05 GMT
smilen dimitrov

> Is it because I do not have a loop of any kind,

N
>  and everytime the count functions are called it cannot "retro"
> count the previous ITEM's which fit this description?  I know a loop would be a
> convenient method, but unfortunately my ITEM's are contained within different
> parent elements

count() doesn't care where the nodes are that it is counting, it just
tells you how manynodes there are. Insidee the count is a standard Xpath
expression to select whatever nodes you want to select.
I guessed preceding-sibling::ITEM but if teh ITEMs are not siblings,
obviously that was the wrong guess and you need an Xpath that selects
what you want to select.

You may find it easier to use xsl:number with suitable attributes
so it just counts all items consecutively.

David



-- 
http://www.dcarlisle.demon.co.uk/matthew

 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.