|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: four time post:
sorry that it is hard to read my code.
Now I make it clear:
XML file:
<SubjectLists>
<Subject_List>
<Subject_ID>31</Subject_ID>
<Subject_Title>Biology</Subject_Title>
<Subject_Parent_ID>30</Subject_Parent_ID>
</Subject_List>
<Subject_List>
<Subject_ID>32</Subject_ID>
<Subject_Title>Chemistry</Subject_Title>
<Subject_Parent_ID>30</Subject_Parent_ID>
</Subject_List>
<Subject_List>
<Subject_ID>15</Subject_ID>
<Subject_Title>Dance</Subject_Title>
<Subject_Parent_ID>14</Subject_Parent_ID>
</Subject_List>
<Subject_List>
<Subject_ID>30</Subject_ID>
<Subject_Title>Science</Subject_Title>
<Subject_Parent_ID>1</Subject_Parent_ID>
</Subject_List>
<Subject_List>
<Subject_ID>34</Subject_ID>
<Subject_Title>Social Studies</Subject_Title>
<Subject_Parent_ID>1</Subject_Parent_ID>
</Subject_List>
</SubjectLists>
What the example result I want to get:
Dance; Science(Biology;Chemistry);Social Studies
The rules is that Display the SUbject_Title based on
alphaberic order.If Subject_Parent_ID is 1 then
display and also display its child node( in here the
subject_Id is 31,32) inside the
(firstchildTitle;SecondChildTitle and LastChldTitle)
If the node subject_parent_ID is not 1 but its parent
didn't exist on the xml file then display it too.
Thanks
Helena
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








