[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: grouping by attribute
Subject: Re: grouping by attribute From: Olivier Corby <Olivier.Corby@xxxxxxxxxxxxxxx> Date: Mon, 23 Aug 1999 16:26:37 +0200 |
You can try this: <xsl:template match="test"> <xsl:for-each select="*"> <xsl:if test="not(preceding-sibling::*[@category=current()/@category])"> <table border="1"> <xsl:apply-templates select="."/> <xsl:for-each select="following-sibling::*[@category=current()/@category]"> <xsl:apply-templates select="."/> </xsl:for-each> </table> </xsl:if> </xsl:for-each> </xsl:template> Olivier --- Olivier Corby, Acacia project, INRIA Sophia Antipolis email : Olivier.Corby@xxxxxxxxxxxxxxx tel : +33 4 92 38 78 71 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
grouping by attribute, Sargeant, Richard (G | Thread | RE: grouping by attribute, Kay Michael |
RE: Version number in XSLT namespac, Simon St.Laurent | Date | choose on element content., DPawson |
Month |