[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to Display multiple items

Subject: Re: How to Display multiple items
From: Michael Laing <mpl@xxxxxxxx>
Date: Thu, 02 Dec 1999 07:40:56 -0500
for each 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.