This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: for-each -- strange multiplication effects


mario.jeckle@daimlerchrysler.com 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]