[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: four time post:

Subject: RE: four time post:
From: que Li <queincanada@xxxxxxxx>
Date: Fri, 26 Nov 2004 13:20:04 -0500 (EST)
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.