]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/sort-events-by-beginning.xsl
A big commit:
[helm.git] / helm / mowgli / home / xsl / sort-events-by-beginning.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet version="1.0"
4                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6 <xsl:output method="xml"/>
7
8 <xsl:template match="events">
9  <events>
10   <xsl:apply-templates select="event">
11     <xsl:sort select="when/begin" data-type="number"/>
12   </xsl:apply-templates>
13  </events>
14 </xsl:template>
15
16 <xsl:template match="event">
17  <xsl:copy-of select="."/>
18 </xsl:template>
19
20 </xsl:stylesheet>