XSLT Debugging with .NET

Over the years debugging XSLT has gotten better and better but one thing continues to be lacking. XSLT debugging with .NET component references in the XSLT. I know there are some tools that do a decent job but something is always lacking.

Well I decided to write an XSLT debugger that uses Visual Studio. It is fairly easy to use and is very robust. I will put pictures and such up later but for now I just wanted to get the app out. So if you are like me and are looking for a debugger that includes .NET capabilities then here it is. If you have questions feel free to ask.

So here it is... (Drum Roll)

The XSLT Debugger for .NET.

http://cid-f797155a9bd4a824.skydrive.live.com/self.aspx/XSLTDebugger/XSLTDebugger.msi

 So I added an example application that is located in the install directory

C:\Program Files\XSLTDebugger\ExampleApplication

 

Here are the instructions:
1. Start application - XSLTDebugger.exe located C:\Program Files\XSLTDebugger\ by default.
2. Follow instructions on the screen, adding input, xslt, and output files.
3. The Arguments are the most important part. The arguments represent the .NET component itself. So reference your .NET component and then choose the appropriate "type" or method call. Make sure that the assembly you reference is in the GAC and is strong named.
4. The namespace field is what is referenced in the XSLT. An example is: xmlns:inputHelperObj=http://DebuggerExample/inputHelperObj

Enjoy.

 

5. The Type field and the Namespace field basically coorelate to each other thus providing the reference.
6. Make sure you add the arguments to the list and repeat for each argument you need to add.
7. Once done click debug, you will get the screen that says which environment do you want to open. This is normal and is how you debug in visual studio so if you have Visual Studio 2005 choose the Visual Studio 2005 environment.
8. Any questions just ask. I will try to respond quickly.

posted @ Monday, November 10, 2008 8:27 AM

Print

Comments on this entry:

# re: XSLT Debugging with .NET

Left by neonguru at 11/11/2008 7:41 AM
Gravatar
That's it? Anybody try this out yet? Screenshots? Description?

# re: XSLT Debugging with .NET

Left by mark at 11/11/2008 7:51 AM
Gravatar
More is coming... sorry. I am still working on the app to make it better. I will include more info later but try it out and let me know your questions. Just FYI... GAC the assemblies you are trying to debug.

# re: XSLT Debugging with .NET

Left by Matt Ellis at 11/11/2008 12:00 PM
Gravatar
Not wanting to knock your application, but do you know that Visual Studio has a built in XSLT debugger?

http://msdn.microsoft.com/en-us/library/ms255605(VS.80).aspx

Cheers
Matt

# re: XSLT Debugging with .NET

Left by Mark at 11/11/2008 12:46 PM
Gravatar
Yes Matt you are correct, Visual Studio does have an XSLT debugger and that is how the application can walk through XSLT, however microsoft left off the ability to debug XSLT that uses outside .NET code (i.e. components) in the debugging process.
You can walk through XSLT using Visual Studio but you if you try to debug XSLT in Visual Studio that makes a call to a static method in a componet it will fail. Biztalk can use outside components inside XSLT but you cannot debug the XSLT inside of Visual Studio when you add the logic to the XSLT, so I wrote an application to handle it.

# re: XSLT Debugging with .NET

Left by Matt Ellis at 11/12/2008 1:30 AM
Gravatar
Cool! Nice one. Good explanation, too.

Cheers
Matt

# re: XSLT Debugging with .NET

Left by VJ at 11/14/2008 6:25 AM
Gravatar
I tested your XSLTDebugger App. It is one hell of an Application. I amused by the way you used the Remoting functionality of .Net.

--- VJ

# re: XSLT Debugging with .NET

Left by web development company at 8/27/2009 1:03 PM
Gravatar
Quite inspiring,

Thanks I used your code and It worked exelent, I'm so shoked how you remotefunctionaltiy of .net
Thanks for posting it

Keep up the good work

Your comment:



 (will not be displayed)


 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345