Re: [xsl] Displaying multiple instances of the same tag

Subject: Re: [xsl] Displaying multiple instances of the same tag
From: "Samooo" <samooo_vc@xxxxxxxxxxx>
Date: Sat, 12 Jun 2004 12:45:09 -0700
You can use
<xsl:appy-templates select="quote"/>
and
<xsl:template match="quote">
  <xsl:value-of select="." />
</xsl:template>


Sameer.

----- Original Message ----- 
From: "Daniel Palmer" <Daniel.Palmer@xxxxxxxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, June 12, 2004 9:44 AM
Subject: [xsl] Displaying multiple instances of the same tag


> The xml I've been playing with looks like this:
> 
> <reference>
> <title>Empire</title>
> <artist>Book</artist>
> <country>USA</country>
> <company>Columbia</company>
> <price>10.90</price>
> <year>1985</year>
> <quote>I am cool</quote>
> <quote>You are cool</quote>
> <quote>We are cool</quote>
> </reference>
> 
> In xsl,  <xsl:value-of select="quote"/> of course displays only the 
> first quote.  Can someone tell me how to specify in xsl which and how 
> many of the quotes to display in xml?  I searched the archives and the
> other recommended FAQ page unsuccessfully.
> 
> Best,
> Dan Palmer
> 
> 
> --+------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 

Current Thread