Convert from string to number
I have the source
<g transform="translate(0 0) scale(0.4)" >
My expression like this:
<xsl:variable name="s" select="number(substring-before(substring-after(@transform,'scale'),')'))"/>
I wanna get the value 0.4 and multiply by a number. For instance: 100*$s
But it return NaN value
|