Message 1 of 2
Not applicable
03-30-2020
05:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.