[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Grouping with XSL...


Subject: Grouping with XSL...
From: "SeJo" <selim.cesic@xxxxxxxxx>
Date: Mon, 27 Dec 1999 16:39:59 +0100

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



Current Thread
Keywords
xml