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

counting nodes before a certain node

Subject: counting nodes before a certain node
From: a kusa <akusa8@xxxxxxxxx>
Date: Mon, 30 Nov 2009 16:40:00 -0600
 counting nodes before a certain node
Hi

How do I count nodes up to a certain point in XSLT?

Example:

My xml file looks like this:

<books>
<book>
<title>First title</book>
</book>
<notes>The following books talk about history.</notes>
<notes>For further information please log on to </notes>
<notes>Thank you for choosing.. </notes>
<book>
<title>Abraham Lincoln </title>
</book>

<authors>
sample data

</authors>
<notes>Please call... </notes>
<notes>Copyright Information </notes>
<book>

sample data
</book>
</books>

In my XSLT file, I want to count all <notes> just before the second
<book> element but immediately after the first book element or just
after <authors>.

How do I count all the notes elements here?

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.