|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re: <xsl:for-each> problem ?
> Hi, my xsl does not generate the right html output. The problem > seems to be <xsl:for-each>. Instead of the two stocks for each > date, I get all four stocks for each date (conflicts with how > data is in my xml file). > > <xsl:for-each select="FTSE100/DATE"> ... > <xsl:for-each select="/FTSE100/DATE/STOCK"> .. The inner for-each is selecting every /FTSE100/DATE/STOCK in the source document. You want to select the STOCK elements that are children of the outer DATE element. Change it to <xsl:for-each select="STOCK"> Mike Kay Software AG 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
|

Cart








