xsl-list
[Top] [All Lists]

[xsl] Numbering in XSLT

2008-06-10 11:55:48
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!


      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>