Subject: Re: Antwort: RE: bad programming for speedup?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 24 Jul 2007 15:19:55 +0200
|
Rob,
from the first post, it seems that the OP wants to group adjacent
siblings of the same type and *then* wrap them within <table> elements.
You solution would wrap each and every element on itself. But I am
guessing, the OP did not state this explicitly, nor did he give
input/output examples.
Cheers,
Abel
Robert Koberg wrote:
Hi,
Is the OP sure that the elements wrapping the rows cannot be determined
beforehand and have templates set up for those? If so, from what I can
see, all that is needed is:
<xsl:template match="tbl-type1 | tbl-type2 | tbl-type-etc">
<table>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:appy-templates select="node() | @*" />
</xsl:copy>
</xsl:template>
best,
-Rob
|