|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to Display multiple items
bhavesh bhanushali wrote: ... > <xsl:template match="subject"> > <font class="display"><b><xsl:value-of select="topic" /></b></font><br /> > <font class="display"><xsl:value-of select="method" /></font><br /> > </xsl:template> > > But only first <method> tags values are displayed. > CAn anyone tell me, how to display values of all <method> tags. > This seems to work: <xsl:template match="subject"> <font class="display"><b><xsl:value-of select="topic" /></b></font><br /> <xsl:for-each select="method"> <font class="display"><xsl:value-of select="." /></font><br /> </xsl:for-each> </xsl:template> Note the 'for-each' and the change in the select for 'value-of'. ml 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








