This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Please help (XSLT)


> 	At the CONDITION, when I tried this:
> 
> 	<xsl:value-of select="//EXPIRE"	 />
> 
> 	It only print out the first TICKET's EXPIRE value which 
> is "2 May 2000".

The string() function when applied to a node-set (which <xsl:value-of> does
implicitly) returns the string-value of the first node in the node-set. If
you want all the values, use something like:

    <xsl:for-each select="//EXPIRE">
       <xsl:value-of select="."/>
    </xsl:for-each>

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]