xsl-list
[Top] [All Lists]

[xsl] save elments to an array and use later

2013-12-03 03:58:52

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>

--~------------------------------------------------------------------
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>
--~--