There's no direct support for dates in XSLT 1.0, though it comes in XSLT 2.0. It's best to represent them in ISO-8601 notation (YYYY-MM-DD); you can then sort them as text, and pick out the components of the date using substring(). There's also an exslt library for date manipulation (implemented in Saxon): see www.exslt.org.
Mike Kay
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do you create dates in xslt?
There's no direct support for dates in XSLT 1.0, though it comes in XSLT 2.0. It's best to represent them in ISO-8601 notation (YYYY-MM-DD); you can then sort them as text, and pick out the components of the date using substring(). There's also an exslt library for date manipulation (implemented in Saxon): see www.exslt.org.
Mike Kay