Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 10th, 2008, 12:17 PM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Numbering in XSLT

Hello All,

I am an absolute newbee to XSLT and have been cracking my head trying to achieve the following:

Sample XML file:

<date>
<ed date1="01/01/2007" id="1" />
<ed date1="01/01/2008" id="2" />
<ed date1="01/01/2008" id="3" />
<ed date1="01/01/2005" id="4" />
<ed date1="01/01/2008" id="5" />
<ed date1="01/01/2009" id="6" />
</date>

Now I want a numbered output as follows:

0. 01/01/2005,4
1. 01/01/2007,1
2. 01/01/2008,2
2. 01/01/2008,3
2. 01/01/2008,5
3. 01/01/2009,6

i.e I want a numbered o/p grouped by date1 as shown above. Help!
 
Old June 10th, 2008, 05:07 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Please don't post the same question on more than one forum unless your first attempt fails to come up with an answer.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbering - For each Navy1991_1 XSLT 3 July 2nd, 2008 07:56 AM
Page numbering athanatos XSLT 4 May 13th, 2005 06:12 PM
numbering harag XSLT 2 November 6th, 2003 06:04 AM
numbering problem harag XSLT 1 November 5th, 2003 03:31 PM
XSL numbering be782524 XSLT 2 August 5th, 2003 05:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.