xsl-list
[Top] [All Lists]

Re: variable and arithmetrics

2004-11-10 03:20:29
Andreas Andersson wrote:

I've been trying to figure out how to assign av variable an arithmetic value.

What I want to do is something like this (in pseudo code)

<xsl:variable name="priceInCents">
   <xsl:value-of select="//thing/@priceInEuro" />*100
</xsl:variable>

<xsl:variable name="priceInCents" select="//thing/@priceInEuro * 100"/>
--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel


<Prev in Thread] Current Thread [Next in Thread>