Using XPath string functions in XSLT templates
When using XSLT templates, it's often necessary to perform transformations that are more complex than simple one-to-one entity maps.
http://www.geocities.com/s_kamal_kannan/xml/XPathstringXSLT.html