[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: read array

Subject: Re: read array
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 21 Dec 2011 11:47:22 +0000
Re:  read array
On 21 December 2011 11:42, henry human <henry_human@xxxxxxxx> 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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.