This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: apply-templates iside for-each?
- To: xsl-list at mulberrytech dot com, ndw at nwalsh dot com
- Subject: Re: apply-templates iside for-each?
- From: Ron Ten-Hove <ronald dot ten-hove at ebay dot sun dot com>
- Date: Fri, 03 Nov 2000 15:05:43 -0800
- Organization: Sun Microsystems Inc.
- References: <14851.6309.889000.667660@menteith.com>
- Reply-To: xsl-list at mulberrytech dot com
I think XT is correct; see section 5.6 "Overriding Template Rules"
of the XSLT rec. for the explanation.
-Ron
Norman Walsh wrote:
>
> Presented with this construction:
>
> <xsl:for-each select="child::*">
> <xsl:variable name="x.ischunk">
> <xsl:call-template name="chunk"/>
> </xsl:variable>
> <xsl:if test="$x.ischunk != 0">
> <xsl:apply-templates select="."/>
> </xsl:if>
> </xsl:for-each>
>
> XT complains:
>
> file:book2.xml:6: xsl:apply-templates inside xsl:for-each
>
> That's an XT bug, right? Or am I overlooking something?
>
> Be seeing you,
> norm
>
> --
> Norman.Walsh@East.Sun.COM | Men do not quit playing because they grow
> XML Technology Center | old; they grow old because they quit
> Sun Microsystems, Inc. | playing.--Oliver Wendell Holmes
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list