xsl-list
[Top] [All Lists]

[xsl] XSLT 2.0 Multi-level grouping

2008-01-09 07:17:46
Hi,

I'm in need for an multi-level grouping routine using XSLT 2.0
I can't figure out houw to do this.
Can anyone give me a good hint?

Robert Zegwaard

XML (INPUT)
---------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<Computers>
    <Hardware>
        <Hardisks>
            <Product>
                Seagate 200GB
            </Product>
            <Price>
                129,-
            </Price>
        </Hardisks>
    </Hardware>
    <Hardware>
        <Hardisks>
            <Product>
                Maxtor 160GB
            </Product>
            <Price>
                109,-
            </Price>
        </Hardisks>
    </Hardware>
    ...
    <Software>
        ...
    </Software>
    ...
</Computers>

---------------------------------------
Desired XML (OUTPUT)
---------------------------------------
<Computers>
    <Hardware>
        <Hardisks>
            <Product>
                Seagate 200GB
            </Product>
            <Price>
                129,-
            </Price>
             <Product>
                Maxtor 160GB
            </Product>
            <Price>
                109,-
            </Price>
        </Hardisks>
        <Monitors>
            ...
        </Monitors>
        ...
    </Hardware>
    <Software>
        <Office>
            ...
        </Office>
        ...
    </Software>
</Computers>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>