Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do debug XSL

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
503 Views, 1 Reply

How do debug XSL

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.

1 REPLY 1
Message 2 of 2
tyronebk
in reply to: Anonymous

You need to format your method call like this:

return rNumber.toString().replace(".", ",");

replace needs to be called with "dot notation" and with all lowercase letters. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report