Suppose I have a list of nodes that contain the datetime attribute, and I want to select only the records that occur after $ compare-datetime.
<records>
<record @datetime="2010-01-04T16:48:15.501-05:00"/>
<record @datetime="2010-01-03T16:48:15.501-05:00"/>
...etc...
</records>
In xquery to select items in a date range I would do
/records/record[xs:dateTime(@datetime) > xs:dateTime($compare-datetime)]
However, in XSLT 1.0 I tried different approaches many times and searched for answers a lot, without any success in my work.
I'm starting to think that without analyzing the actual dateTime value to an integer value, this is not an easy task in xslt.
I hope someone can give me a definite answer to this so that I can at least know what I am up against.
Greetings
Casey
source
share