xsl-list
[Top] [All Lists]

RE: four time post:

2004-11-26 11:20:04

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--