[xsl] How to create tables from this...?

Subject: [xsl] How to create tables from this...?
From: "Emma Larsson" <emma.larsson@xxxxxxxx>
Date: Tue, 23 Apr 2002 16:45:03 +0200
Hi,

Below is a snippet from one of the XML files I am working with.

<driving/>
<side-effects>
    <paragraph>blabla</paragraph>
    <common>
        <paragraph>blabla</paragraph>
    </common>
    <less-common>
        <paragraph>blabla</paragraph>
    </less-common>
    <rare>
        <paragraph>blabla</paragraph>
        <paragraph>blabla</paragraph>
    </rare>
    <paragraph>blabla</paragraph>
    <paragraph>blabla</paragraph>
    <common>
        <paragraph>blabla</paragraph>
    </common>
    <very-rare>
        <paragraph>blabla</paragraph>
        <paragraph>blabla</paragraph>
    </very-rare>
    <paragraph>blabla</paragraph>
</side-effects>
<overdosage/>

This is from the DTD:
<!ELEMENT side-effects (paragraph | very-common | common | less-common | rare | very-rare)* > 

This is what I want to create:
blabla
<table with the elements common, less-common and rare (and their underlying paragraphs)>
blabla
blabla
<table with the elements common and very-rare (and their underlying paragraphs)>
blabla

So, I want to create tables, one table for each set of elements that are not paragraphs. These sets are 
separated by paragraphs and they contain paragraphs that should be included in the table... Any 
suggestions of how to do this?

/Emma




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


Current Thread