I just want to multiply the -select value by 1,000,000 after the div, very new to this; I am sure this is a simple question for someone. Thanks in advance.
<xsl:value-of select="AbsolutePos/@x div 80" />
If you want to multiply by 1,000,000, donโt think that itโs right, so it returns the wrong value
<xsl:value-of select="AbsolutePos/@x div 80 * 1000000" />
Continued: enter the following XML
<AbsolutePos x="-1.73624e+006" y="-150800" z="40000"></AbsolutePos>
Change to
<PInsertion>-21703,-1885,500</PInsertion>
Using XSL
<PInsertion><xsl:value-of select="AbsolutePos/@x div 80 * 1000000" />,<xsl:value-of select="AbsolutePos/@y div 80" />,<xsl:value-of select="AbsolutePos/@z div 80" /></PInsertion>
Although getting
<PInsertion>NaN,-1885,500</PInsertion>
Suppose you take the value of X and divide it by 80, then multiply by 10,000 by the return of -21703
source
share