|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: grouping by attribute
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








