<block1>
<tag>
<name>59</name>
<value>/00940001812410930828 FONDITEL VALORES AV SAU ATAM PEDRO TEIXERIA 8 PLANTA 7A 28020MADRID
</value>
</tag>
</block1>
I need the output as 00940001812410930828 ,FONDITEL VALORES AV SAU ATAM PEDRO TEIXERIA 8 PLANTA 7A 28020MADRID
Can any one help me please?
This XPath expression:
Or this XSLT stylesheet:
And a simple XPath 2.0 expression:
If I'm not missing anything try the following approach:
In case you want to concentrate on string processing you should probably consider improving your xml markup instead of that. Otherwise working with string values with xslt 1.0 is tedious. (if you're using 2.0 then there is a list of predefined functions exactly for this purpose (like fn:tokenize).