[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|