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

Re: Count() elements in range

Subject: Re: Count() elements in range
From: Chris.Pearson@xxxxxxxxxxxx
Date: Thu, 16 Oct 2003 09:43:12 -0400
chris pearson
Apologies -- my brain was a bit fried on the explanation: What I'm trying
to accomplish is for the last <element> in a series (meaning it's either
the last <element> in the document or the next <element> has a <flag>
child) and count the prior <element> nodes up to the first <element> with a
child <flag>.

<root>
<element number="A1"><!--start a series of 1 -->
<flag/>
</element><!-- only 1 in series, so count is only 1 -->
<element number="B1"><!-- start a series of 4 -->
<flag/>
</element>
<element number="B2"/>
<element number="B3"/>
<element number="B4"/><!-- count the previous 3 elements -->
<element  number="C1"><!-- start a series of 2 -->
<flag/>
</element>
<element  number="C2"/><!--count the previous 1 element -->
<element  number="D1"><!-- start a series of 3 -->
<flag/>
</element>
<element  number="D2" />
<element  number="D3" /><!-- count the previous 2 elements -->
</root>


Chris Pearson
Agilisys Automotive
248.697.3443
Chris.Pearson@xxxxxxxxxxxx



 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.