This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Can you group in XSL?
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Can you group in XSL?
- From: Rene de Vries <RdVries at PCL-HaGe dot nl>
- Date: Wed, 11 Jul 2001 08:41:55 +0200
- Cc: "'Doug dot Hewko at ccra-adrc dot gc dot ca'" <Doug dot Hewko at ccra-adrc dot gc dot ca>
- Organization: PCL HaGé b.v.
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Doug,
Mike Kay answered to this question before:
Grouping isn't easy in XSLT 1.0 but you will find a full discussion of the
techniques at http://www.jenitennison.com/
More specific at http://www.jenitennison.com/xslt/grouping/index.html
Greetings Rene
{ @ @ }
^
\__/
"You don't need eyes to see, you need vision!"
-----Oorspronkelijk bericht-----
Van: Hewko, Doug [SMTP:Doug.Hewko@ccra-adrc.gc.ca]
Verzonden: dinsdag 10 juli 2001 15:18
Aan: 'xsl-list@lists.mulberrytech.com'
Onderwerp: [xsl] Can you group in XSL?
Hi!
How could I group elements in XSL so a particular element is only displayed
once? I can retrieve all elements softed by category, but am not able to
surpress the repetitions.
For example, let's say I have the following XML and want the output to look
like this:
CATEGORY 1
Title....description for this item
subcategory
Another title...description
CATEGORY 2
Yet another title...Description
<?xml version="1.0" standalone="no"?>
<glossary>
<glossaryitem>
<category>Category 1</category>
<english_title>Title</english_title>
<english_description>Description for this item.
</english_description>
</glossaryitem>
<glossaryitem>
<category subcategory="Subcategory">Category 1</category>
<english_title>Another title</english_title>
<english_description>Description</english_description>
</glossaryitem>
<glossaryitem>
<category>Category 2</category>
<english_title>Yet Another title</english_title>
<english_description>Description</english_description>
</glossaryitem>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list