Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Recursive XSLT processing (http://www.velocityreviews.com/forums/t166173-recursive-xslt-processing.html)

yurick 12-02-2003 10:23 PM

Recursive XSLT processing
 
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.


All times are GMT. The time now is 06:48 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.