Subject: Re: [xsl] Issue with nested grouping From: Geert Bormans <geert@xxxxxxxxxxxxxxxxxxx> Date: Mon, 03 Dec 2007 00:39:46 +0100 |
half the code base, twice the speed that was definitely the way to go thanks for your help
Florent Georges wrote:
> <xsl:template match="wx:sub-section"> > <xsl:copy> > <xsl:copy-of select="@*"/> > <xsl:apply-templates select="w:p[1]" mode="my:group"/> > </xsl:copy> > </xsl:template>
There is no reason to not apply template to the nodes before the first W:P (for instance text nodes part of the indentation). So you should replace "w:p[1]" by "node()[1]". That's more in accordance to the modified identity pattern: specific handling logic is better put in match pattern than in select attributes.
Regards,
--drkm
_____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Issue with nested groupin, Florent Georges | Thread | Re: [xsl] Issue with nested groupin, Geert Bormans |
Re: [xsl] XSLT to convert to type s, Florent Georges | Date | Re: [xsl] XSLT to convert to type s, Farrukh Najmi |
Month |