|
Subject: RE: [xsl] four time post: From: que Li <queincanada@xxxxxxxx> Date: Fri, 26 Nov 2004 13:20:04 -0500 (EST) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] four time post:, Michael Kay | Thread | [xsl] Preserving WhiteSpaces,NewLin, bhaskar parvathaneni |
| [xsl] First entry in a nodelist via, Cas Tuyn | Date | Re: [xsl] XML Data Islands, XML Men, M. David Peterson |
| Month |