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

XSL: Grouping XML data by an element

Subject: XSL: Grouping XML data by an element
From: Gayatri Ramanan <RamananG@xxxxxxxxxxxxxxxxx>
Date: Thu, 28 Oct 1999 16:08:03 -0400
xsl grouping
Title: XSL: Grouping XML data by an element

Hi,

Can anyone tell me what I'm doing wrong in the XSL. [ see attached file SortByCompound2.xsl ]

What I'm trying to do is to group XML data by a particular column( in this case, CompoundName )
[ see the attached XML file, rfas1.xml ]

So, for every CompoundName selected, i traverse the XML document to check if the current node's CompoundName element matches the CompoundName selected. If it does, then I add the corresponding Sample # ( RFAS ) to the list.

However, all RFAS's are being added to the list.

I have another question : How do I get a list of all DISTINCT CompoundName Element values from the XML document using XSL. I couldn't figure out a way to do it and hence I included that infomation in the beginning of my XML document.

I'd greatly appreciate any help.

Thanks in advance,
Gayatri Ramanan

 

Attachment: SortByCompound2.xsl
Description: Binary data

Attachment: rfas1.xml
Description: Binary data

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.