# Thursday, June 21, 2007

Ouch! Look at this map. I need to see what is happening in some of these functoids. What is a developer to do?????

BadMap

A map is just complex XSL.... So to debug the functoids we need to treat it as such. First, lets Validate our map and get the location of the XSLT.

Validate

Since it validated (no errors) we have the XSLT output location in the Output Window. Copy this location to your clip board. 

Location

Open the file with Visual Studio:

OpenXSLT

Now, right click on your XSL working area and select properties. Here you will enter the input file that will be used for the transform:
InputFile

Mark your break points, just as you would a code file, and start the debug:

DebugXSLT

Now you can step through just as if it was .Net code:

Step1

Even step into the functoid code:

Step2

 

Ed K.

Technorati Tags: ,
Comments are closed.