substring-after($x, '//') gives you the string after the '//', so
substring-after(substring-after($x,'//'), '/') gives you the content starting with 'bbb'.
Apply that a couple more times and you get the content starting with 'ddd'.
Then substring-before(..., '/') applied to that result truncates the string at the next '/'.
Cumbersome, yes. So move to XSLT 2.0 if you can.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|