[xsl] Re: for-each -- strange multiplication effects

Subject: [xsl] Re: for-each -- strange multiplication effects
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 16 Jan 2001 05:37:33 -0800 (PST)
mario.jeckle@xxxxxxxxxxxxxxxxxxx wrote:

> <xsl:template match="test">
> 	<xsl:for-each select="//test[@x]">
> 		this should only happen once!
> 		<xsl:value-of select="@x"/>
> 	</xsl:for-each>
> </xsl:template>


It happens once for each application of this template on a node. There
are 4 "test" elements -- therefore the output is exactly what was asked
for...

Dimitre Novatchev.

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread