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

Sorting parent and child as one

Subject: Sorting parent and child as one
From: "Russ Little" <russ.little@xxxxxxxxxxxx>
Date: Mon, 20 Sep 2004 10:03:39 -0400
xsl parent child
I have a document with parent (CAT) and child (LI) nodes, each with a TXT
attribute.  When these attributes get compiled for output, they need to be
sorted.  When they get sorted, the parent/child association needs to be
ignored.  Currently, they are either sorting by one or the other first...to
make the full list work, it needs to treat them as one and the same.  How can
I treat the parent/child TXT attributes of the following XML as the same, or
somehow ignore the relationship, for sorting?

<DMML>
 <LST>
  <GRP TXT="Automobile Codes" VTY="\X">
   <CAT COD="AAAA" TXT="American Motors (Rambler prior to 1966)">
    <LI COD="MMM" TXT="American Motors Medallion (thru 1987)"/>
   </CAT>
   <CAT COD="XXXX" TXT="American Motors JEEP (use truck code)">
    <LI COD="XXXX" TXT="Buick Opel (Imports)"/>
   </CAT>
   <CAT COD="BBBB" TXT="Amphicar"/>
   <CAT COD="CCCC" TXT="Certificate of Origin or Title (for use when make is
not listed or when certificate is blank)"/>
  </GRP>
 </LST>
</DMML>

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.