|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL: Grouping XML data by an element
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 )
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,
Attachment:
SortByCompound2.xsl Attachment:
rfas1.xml
|
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
|

Cart








