Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Issue with nested grouping

From: Geert Bormans <geert@------------------->
To:
Date: 12/2/2007 11:41:00 PM
Well Florent,



half the code base, twice the speed
that was definitely the way to go
thanks for your help

Geert












At 21:00 2/12/2007, you wrote:
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent