Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - dynmaic recursive nesting in xsl?

 
Thread Tools Search this Thread
Old 05-17-2006, 06:14 PM   #1
Default dynmaic recursive nesting in xsl?


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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump