In pseudocode:
Code:
p1 = substring-before(in, '_')
p2 = substring-after(in, '_')
p3 = substring-before(p2, '_')
concat(p1, '_', p3)
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Last edited by mhkay; September 5th, 2013 at 09:25 AM..
Reason: markup
|