Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Refer to an element using a variable >Thread Next - Re: Refer to an element using a variable Re: Refer to an element using a variableTo: NULL Date: 4/6/2005 4:34:00 PM Hi,
What I REALLY want to do is following:
With this xml:
<nameList>
<name1/>
<name2/>
</nameList>
<phoneList>
<phone1/>
<phone2/>
</phoneList>
When I am processing <name1>, I would like to get <phone1> and when <name2>,
get <phone2>.
I tried position() but it doesn't seem to work.
TIA.
JS
"John Smith" <Jsmith@e...> wrote in message
news:42544573$0$34296$a32e20b9@n......
> Hi,
>
> Instead of refereeing an element using a number, such as
>
> myElement[2]
>
> Can I refer it using a variable such as
>
> myElement[$index] ?
>
> Thanks for help.
>
> JS
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
