Hi,
How to I debug XSL files?
I tried to modify the FormatNumber function on NumberFormatting.xsl to change the decimal separator from period to comma.
//This was the original code:
return rNumber.toString();
//I changed to this
//return Replace(rNumber.toString(), ".", ",");
Also tried writing replace in lowercase.
I tried adding the replace function in earthworks.xsl:
<xsl:value-of select="landUtils:FormatNumber(string(0.0), string($SourceVolumeUnit), string($Earthwork.Volume.unit), string($Earthwork.Volume.precision), string($Earthwork.Volume.rounding))"/>
<!-- <xsl:value-of select="replace(landUtils:FormatNumber(string(0.0), string($SourceVolumeUnit), string($Earthwork.Volume.unit), string($Earthwork.Volume.precision), string($Earthwork.Volume.rounding)),'.',',')"/> -->
In all three cases the result was a blank page in the browser.
Greetings from Paraguay.
Claudio Bogado Pompa.