In XSLT2 you could cast the strings to dates then do a date-aware
comparison.
in xslt 1 you could use
translate('2004-06-27','-','') so that you are comparing the numbers
20040627 and 20040905
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________