dynmaic recursive nesting in xsl?

Discussion in 'XML' started by Elhanan, May 17, 2006.

  1. Elhanan

    Elhanan Guest

    hi..

    i have the following xml document
    <CaseRisk Id="0102" ResultLevelId="1" />

    <CaseRisk Id="01030102" ResultLevelId="5">

    <CaseRisk Id="010305" ResultLevelId="5">

    <CaseRisk Id="0103" ResultLevelId="1">


    <CaseRisk Id="0101" ResultLevelId="1">

    etc..

    into to come up with xsl that will each CaseRisk with another, now the
    nesting rules are that Each CaseRisk that it's Id has another CaseRisks
    Id init ,is nested inside that CaseRisk:

    for example id 010305 should be nested inside id 0103 and 01030102
    should be nested inside 010305

    problems is that i don't the exact depth of each nest level, my only
    solution would be to first select the shorest id's there are, for each
    one, try to find id that contain that id in the outloop but are longer
    by 2 digits , if i can't find any go to another depth and start
    scanning for longer id's, untill i reach the length longest id that
    exists in that xml
    is that possible with xsl?
     
    Elhanan, May 17, 2006
    #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. Replies:
    1
    Views:
    3,691
    A. Bolmarcich
    May 27, 2005
  2. n00m
    Replies:
    12
    Views:
    1,142
  3. Jung, William

    dynmaic allocation

    Jung, William, Nov 19, 2008, in forum: C++
    Replies:
    3
    Views:
    276
    James Kanze
    Nov 20, 2008
  4. vamsi
    Replies:
    21
    Views:
    2,151
    Keith Thompson
    Mar 9, 2009
  5. Trans
    Replies:
    10
    Views:
    327
    Sean O'Halpin
    Sep 16, 2005
Loading...

Share This Page