wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XSL transformation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSL transformation" Watch "XSL transformation" New topic
Author

XSL transformation

neha gowda
Greenhorn

Joined: Feb 04, 2004
Posts: 23
HI ALL

<RESOURCETOTAL>
<ALLOCATION START="2008-03-01" FTE="1.0" />
<ALLOCATION START="2008-04-01" FTE="1.0" />
<ALLOCATION START="2008-05-01" FTE="0.56" />
<ALLOCATION START="2008-06-01" FTE="0.5" />
<ALLOCATION START="2008-07-01" FTE="1.0" />
<ALLOCATION START="2008-08-01" FTE="0.5" />
<ALLOCATION START="2008-02-01" FTE="1.0" />
<ALLOCATION START="2008-03-01" FTE="2.0" />
<ALLOCATION START="2008-04-01" FTE="3.75" />
<ALLOCATION START="2008-05-01" FTE="2.0" />
<ALLOCATION START="2008-06-01" FTE="1.5" />
<ALLOCATION START="2008-07-01" FTE="1.5" />
<ALLOCATION START="2008-08-01" FTE="0.5" />
<ALLOCATION START="2008-09-01" FTE="0.25" />
<ALLOCATION START="2008-10-01" FTE="0.12" />
</RESOURCETOTAL>

I'm generating this xml using a xsl. I have to add FTE values with same date
and the XML shd be

<RESOURCETOTAL>
<ALLOCATION START="2008-03-01" FTE="3.0" />
<ALLOCATION START="2008-04-01" FTE="4.75" />
<ALLOCATION START="2008-05-01" FTE="2.56" />
<ALLOCATION START="2008-06-01" FTE="2.0" />
<ALLOCATION START="2008-07-01" FTE="3.0" />
<ALLOCATION START="2008-08-01" FTE="0.5" />
<ALLOCATION START="2008-02-01" FTE="1.0" />
<ALLOCATION START="2008-09-01" FTE="0.25" />
<ALLOCATION START="2008-10-01" FTE="0.12" />
</RESOURCETOTAL>

How do I do it.

Thanks
Neha
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Have tried applying xsl:sort over start attribute in the xsl:for-each loop ??

if you are a beginner for xslt, please have a look at this tutorial http://www.w3schools.com/xsl/default.asp


Spritle Software Blogs
 
 
subject: XSL transformation