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

Re: suppressing duplicate data points contained in xml

Subject: Re: suppressing duplicate data points contained in xml data
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 26 Apr 2011 13:05:23 +0200
Re:  suppressing duplicate data points contained in xml
David wrote:

Here is an example of the XML data.

<GROUP  dow="Monday" period="morning" description="Alpha One"/>
<GROUP  dow="Monday" period="morning" description="Alpha Two"/>
<GROUP  dow="Monday" period="morning" description="Alpha Three"/>
<GROUP  dow="Tuesday" period="morning" description="Alpha One"/>
<GROUP  dow="Tuesday" period="morning" description="Alpha Two"/>
<GROUP  dow="Tuesday" period="afternoon" description="Bravo One"/>
<GROUP  dow="Tuesday" period="afternoon" description="Bravo Two"/>
<GROUP  dow="Tuesday" period="afternoon" description="Bravo Three"/>
<GROUP  dow="Tuesday" period="evening" description="Charlie One"/>
<GROUP  dow="Tuesday" period="evening" description="Charlie Two"/>
<GROUP  dow="Tuesday" period="evening" description="Charlie Three"/>
<GROUP  dow="Tuesday" period="night" description="Delta One"/>
<GROUP  dow="Tuesday" period="night" description="Delta Two"/>
<GROUP  dow="Wednesday" period="morning" description="Alpha One"/>
<GROUP  dow="Wednesday" period="morning" description="Alpha Two"/>

Desired XSL output would be something like: Unfortunately I must stick w/
XSL Version 1.0 as I am running on an AIX FOP engine

Monday
             Morning
                         Alpha One
                         Alpha Two
                         Alpha Three
Tuesday
             Morning
                         Alpha One
                         Alpha Two
             Afternoon
                         Bravo One
                         Bravo Two
                         Bravo Three
             Evening
                         Charlie One
                         Charlie Two
                         Charlie Three
             Night
                         Delta One
                         Delta Two
Wednesday
             Morning
                         Alpha One
                         Alpha Two

Use multi level Muenchian grouping, see http://www.biglist.com/lists/xsl-list/archives/200101/msg00070.html


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.