|
Subject: [xsl] Showing unique rows at multiple levels From: Glen Mazza <grm7790@xxxxxxxxxxx> Date: Wed, 04 Oct 2006 14:07:44 -0400 |
<books>
<book>
<title>T1</title>
<author>A5</author>
<publisher>P7</publisher>
<bookshelf>B4</bookshelf>
</book>
<book>
<title>T2</title>
<author>A6</author>
<publisher>P8</publisher>
<bookshelf>B4</bookshelf>
</book>
<book>
<title>T4</title>
<author>A5</author>
<publisher>P7</publisher>
<bookshelf>B6</bookshelf>
</book>
<book>
<title>T3</title>
<author>A5</author>
<publisher>P7</publisher>
<bookshelf>B4</bookshelf>
</book>
</books>B4 --A5 (show just once even though 2 books of A5) ----P7 (show just once even though 2 books of P7 under A5 on B4) --A6 ----P8 B6 --A5 ----P7
B4 --A5 ----P7 --A6 ----P8 B6
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="books">
<xsl:for-each select="//bookshelf[not(.=preceding::bookshelf)]">
<xsl:sort select="."/>
<xsl:apply-templates select='.'/>
</xsl:for-each>
</xsl:template><xsl:template match="publisher">
----<xsl:value-of select="."/>
</xsl:template>Thanks, Glen
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] problems around →, Frank Marent | Thread | RE: [xsl] Showing unique rows at mu, Geert Josten |
| Re: [xsl] problems around →, David Carlisle | Date | Re: [xsl] Open Source - Excel to XM, Andrew Franz |
| Month |