I have a atom file file that looks like
I want/need it in the same format, but I need it sorted.
I tried:
The result isn't pretty, but it's not terribly far from what I want. What I get back is:
I've not toched XSLT in a long time, and I'm looking for a fast and cheap solution.
Code:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="[URL unfurl="true"]http://www.w3.org/2005/Atom">[/URL]
<title>Zimbra CIE_Events</title>
<generator>Zimbra Atom Feed Servlet</generator>
<updated>2009-04-16T15:41:55-05:00</updated>
<entry>
<title>Culture Cafe </title>
<updated>2009-04-23T14:00:00-05:00</updated>
<summary/>
<author>
<name/>
<email>foo@uwm.edu</email>
</author>
</entry>
...
</feed>
I want/need it in the same format, but I need it sorted.
I tried:
Code:
<xsl:stylesheet xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/feed/entry">
<xsl:apply-templates>
<xsl:sort select="updated"/>
</xsl:apply-templates>
</xsl:template>
</xsl:stylesheet>
The result isn't pretty, but it's not terribly far from what I want. What I get back is:
Code:
Zimbra CIE_EventsZimbra Atom Feed Servlet[URL unfurl="true"]http://login01.pantherlink.uwm.edu/service/home/pooney/CIE_Events.atom2009-04-16T15:59:46-05:00Culture[/URL] Cafe 2009-04-23T14:00:00-05:00foo@uwm.edu...
I've not toched XSLT in a long time, and I'm looking for a fast and cheap solution.