Recursive XSLT processing

Discussion in 'XML' started by yurick, Dec 2, 2003.

  1. yurick

    yurick Guest

    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.
     
    yurick, Dec 2, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. poofpoof
    Replies:
    2
    Views:
    617
    poofpoof
    Aug 13, 2004
  2. Hallvard B Furuseth

    Recursive xslt expansion

    Hallvard B Furuseth, Jan 4, 2007, in forum: XML
    Replies:
    1
    Views:
    622
    Martin Honnen
    Jan 4, 2007
  3. Replies:
    4
    Views:
    541
  4. n00m
    Replies:
    12
    Views:
    1,122
  5. vamsi
    Replies:
    21
    Views:
    2,113
    Keith Thompson
    Mar 9, 2009
Loading...

Share This Page