I\'m trying to take XML data and sort elements by their data attribute. Unfortunately the dates come over in mm/dd/yyyy format and are not static lengths. (Jan = 1 instead of
You can use multiple xsl:sort
instructions like in this stylesheet:
Output:
Update from comments
What I'm trying to do is in that stylesheet perform the sort as you've done and then export out the promotionid of the item with startdate '
2/19/2011
' in this case. I assumed it would be something likebut I either am using it in the wrong place or have the statement wrong
Update 3: Now with new selecting data conditions
Use the "standard" maximum idiom. This stylesheet:
Output:
64636