Complex string and date operations for XSLT 1.0.