473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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?

May 17 '06 #1
0 893

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rankam | last post by:
Hi There, We have a requirement for recursive elements within a XML document? Is it possible to design it through XML Schema? And what are implications using recursive elements when using DOM...
4
by: Nicolas Vigier | last post by:
Hello, I have in my python script a function that look like this : def my_function(arg1, arg2, opt1=0, opt2=1, opt3=42): if type(arg1) is ListType: for a in arg1: my_function(a, arg2,...
1
by: Carlos | last post by:
Hi! I think two extensions to re could be really powerful in aiding to match non regular strings -for example those containing parens nested up to an arbitrary depth- but without a significative...
4
by: Jung, William | last post by:
I have a function that convert a string to binary, where - string is the string needs to convert to binary. - binary is the BYTE array to hold the converted data StringtoBinary( LPCSTR string,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.