On 21 December 2011 11:42, henry human <henry_human(_at_)yahoo(_dot_)de> wrote:
Hi
The XML
<?xml version="1.0"?>
<root>
<Invoice>
<DocumentReference>
<ID>100</ID>
</DocumentReference>
</Invoice>
<Invoice>
<DocumentReference>
<ID>200</ID>
</DocumentReference>
</Invoice>
</root>
Output should be: 1.100_2.200
a one liner is:
string-join(/root/Invoice/DocumentReference/ID/concat(position(), '.', .), '_')
..but you can separate that out for readability.
--
Andrew Welch
http://andrewjwelch.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--