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

Re: save elments to an array and use later

Subject: Re: save elments to an array and use later
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 3 Dec 2013 10:46:52 +0000
Re:  save elments to an array and use later
In XSLT there is no such thing as an "array element", and there is also no
such thing as "later".

Of course you can bind a variable to a sequence of nodes.

If you said what you were trying to achieve then perhaps we could help you.

Michael Kay
Saxonica

On 3 Dec 2013, at 09:55, henry human <henry_human@xxxxxxxx> wrote:

>
> I want to save specific child elements from the xml below to an array
element and later loop over the array.
> For example the element I am interested in is those with <test>A</test>
> Any suggestion?
> Thanks
>
> <root>
>     <child>
>     <transfer>J</transfer>
>     <station>B</station>
>     <test>C</test>
> </child>
>  <child>
>     <transfer>N</transfer>
>     <station>I</station>
>     <test>A</test>
> </child>
>  <child>
>     <transfer>F</transfer>
>     <station>B</station>
>     <test>M</test>
> </child>
>  <child>
>     <transfer>F</transfer>
>     <station>B</station>
>     <test>P</test>
> </child>
>  <child>
>     <transfer>H</transfer>
>     <station>G</station>
>     <test>A</test>
> </child>
> </root>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.