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