[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sorting parent and child as one
I don't understand, you're not making yourself clear. If the input is <CAT TXT="A"><LI TXT="Z"/></CAT> <CAT TXT="B"><LI TXT="Y"/></CAT> <CAT TXT="A"><LI TXT="M"/></CAT> then how would you like it to be sorted? Michael Kay > -----Original Message----- > From: Russ Little [mailto:russ.little@xxxxxxxxxxxx] > Sent: 20 September 2004 15:04 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Sorting parent and child as one > > 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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|