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
|