Subject: Re: [xsl] Re: Grouping by attribute From: Lajos Joo <lajosjoo@xxxxxxxxx> Date: Wed, 21 Oct 2009 08:57:38 -0700 (PDT) |
Great idea. However better than mine. I have just changed the if to choose like this: <xsl:template match="node()"> <xsl:param name="cn" select="/.."/> <xsl:choose> <xsl:when test="descendant-or-self::node() intersect $cn"> <xsl:copy> <xsl:apply-templates select="@*| node()"> <xsl:with-param name="cn" select="$cn"/> </xsl:apply-templates> </xsl:copy> </xsl:when> <xsl:otherwise> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:template> --- On Wed, 10/21/09, Martin Honnen <Martin.Honnen@xxxxxx> wrote: > <xsl:template match="node()" mode="m1"> > <xsl:param name="cn"/> > <xsl:if test="descendant-or-self::node() > intersect $cn"> > <xsl:copy> > <xsl:apply-templates > select="@*"/> > <xsl:apply-templates > select="node()" mode="m1"> > <xsl:with-param > name="cn" select="$cn"/> > </xsl:apply-templates> > </xsl:copy> > </xsl:if> > </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Grouping by attribute, Martin Honnen | Thread | Re: [xsl] Re: Grouping by attribute, Florent Georges |
RE: [xsl] Sort by page number, Michael Kay | Date | Re: [xsl] Grouping by attribute, Wendell Piez |
Month |