This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: for-each -- strange multiplication effects
- To: mario dot jeckle at daimlerchrysler dot com
- Subject: [xsl] Re: for-each -- strange multiplication effects
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Tue, 16 Jan 2001 05:37:33 -0800 (PST)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
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