Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Display by category...

From: Zhou Lei <dark_eaglet@-------.--->
To: NULL
Date: 3/2/2005 8:17:00 AM
Hello I'm posting a new article about the category. The following  XML
segment was posted by Li some days ago and I'm trying to do some more work:

<shop name="myshop">
   <category>
       <cd type="pop">Pop music</cd>
       <cd type="rock">Rock</cd>
       <cd type="classical">Classical music</cd>
   </category>

   <welcome>Welcome to myshop</welcome>

   <content>
       <headline>Music CD</headline>
       <location name="Address">
           <cdshelf>
              <disc name="CCC" cg="pop"/>
              <disc name="AAA" cg="pop"/>
              <disc name="EEE" cg="rock"/>
              <disc name="GGG" cg="pop"/>
          </cdshelf>
      </location>

      <location name="AnotherAddress">
           <cdshelf>
              <disc name="BBB" cg="classical"/>
              <disc name="DDD" cg="pop"/>
              <disc name="FFF" cg="classical"/>
          </cdshelf>
      </location>

   </content>
</shop>

The desired web output:

                         Welcome to myshop

Music CD

Location Address:

Pop music:
  1. CCC
  3. AAA
  4. GGG

Rock:
  1. EEE

Location AnotherAddress:

Classical music:
  1. BBB
  2. FFF

Pop music:
  1. DDD


The XML file contains 2 locations, and each location has different kinds of CDs
available (some are unavailable, for example, classical CDs are absent at
location "Address"). And the correct CDs should appear according to
its location and the category should be listed in ascendent order. Is it
possible to do it? Thank you.


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent