[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: for-each -- strange multiplication effects
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|