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: Retrieveing elements and Multiplying the values.


This is one way to do what u need

<xsl:template match="BaseItemDetail">
  		<xsl:variable name="test1" select="Quantity/Qty/text()"/>
  		<xsl:variable name="test2"
select="BuyerExpectedUnitPrice/Price/UnitPrice/text()"/>
  		<xsl:value-of select="$test1 * $test2"/>
 
</xsl:template>


Francis

> -----Original Message-----
> From: Garry Fisher [mailto:gfisher@astech.uk.com]
 
> 
> I want to use XSL to retrieve the quantity and unit price 
> then I want to
> multiply the 2 values and output the result in an HTML 
> document. Any help
> would be much appreciated.
> 
 


 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]