Recursive XSLT processing

yurick

Usenet Archive
Joined
Dec 2, 2003
Messages
3
Reaction score
0
Hello everybody,

I have XML structure like this:

<person name="adam"/>
<person name="eve"/>
<person name="cain">
<parent name="adam"/>
<parent name="eve"/>
</person>
<person name="henoch">
<parent name="cain"/>
</person>

And need to get output from transformation:

adam(0)
eve(0)
cain(2): adam, eve
henoch(3): cain, adam, eve

Is it possible to express in XSLT recursive with any deepness so the number of all ancestors and their names would appear in some node set? Or maybe other technique is applicable here? I'm quit newbie to XML/XSLT, would appreciate any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top