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

Re: Grouping with XSL...

Subject: Re: Grouping with XSL...
From: Paul Levin <plevin@xxxxxxx>
Date: Mon, 27 Dec 1999 12:30:12 -0500
columnvalue xsl html
SeJo,
    Yes, I needed to do the same thing.  Thanks to David Carlisle (from this
discussion group) I am using something like the following XSL --


<xsl:for-each select="//COUNTRYCODE[not(. = following::COUNTRYCODE)]">
<xsl:sort/>
<H1><xsl:value-of select="."/></H1>
<xsl:for-each select="//RECORD[.//COUNTRYCODE=current()]">
<xsl:sort select="any field"/>

       output your record

</xsl:for-each>
</xsl:for-each>

    Paul

SeJo wrote:

> I am using LotusXSL and NonValidatingDomParser from IBM.
>
> XML content that i deal with looks like:
>
> <HEADER>
>     <COLUMNNAME> countryID</COLUMNNAME>
>     <COLUMNNAME>countryCode</COLUMNNAME>
>     <COLUMNNAME>countryName</COLUMNNAME>
>     <COLUMNNAME>recID</COLUMNNAME>
>     <COLUMNNAME>entryID</COLUMNNAME>
> </HEADER>
> <RECORD>
>     <COLUMNVALUE>100</COLUMNVALUE>
>     <COLUMNVALUE>USA</COLUMNVALUE>
>     <COLUMNVALUE>UNITED STATES OF AMERICA</COLUMNVALUE>
>     <COLUMNVALUE>33</COLUMNVALUE>
>     <COLUMNVALUE>JOHN</COLUMNVALUE>
> </RECORD>
> <RECORD>
> ...
> </RECORD>
>
> With the right stylesheet I display it into the appropriate HTML tables.
>
> Is it possible for me to introduce "grouping" of records based on pure
> stylesheet processing methods.
>
> For example for all records with countryCode = USA, I want to represent them
> as (sub)table of the current one.
>
> Since column switches can occur (if such thing is possible) header
> information is influenced as well.
>
> Anyone ever wanted or already did something simmilar?
>
> i'd appreciate any suggestions and ideas.
>
> cheers
>
> SeJo
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Re: OpenXSL?, (continued)
      • Clark C. Evans - Tue, 14 Dec 1999 23:30:03 -0500 (EST)
        • disco - Wed, 15 Dec 1999 14:50:09 -0500 (EST)
        • Stefano Mazzocchi - Thu, 16 Dec 1999 04:07:56 +0100
        • SeJo - Mon, 27 Dec 1999 16:39:59 +0100
        • Paul Levin - Mon, 27 Dec 1999 12:30:12 -0500 <=

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.