May 15, 2007

Compiled XSLT decompiler?

I was reading Scott's post on Reflector Addins and had this idea... Now (well, not now but in the next .NET version - Orcas) that XSLT can be compiled into dll, it must be time to think about XSLT decompiler (and appropriate Reflector addin of course). I believe that must be feasible. Would it be useful for you?

May 15, 2007 12:02 PM | #.NET , #XML , #XSLT
Comments

Thanks, Sergey. Well, I didn't mean decompiling back to original XSLT code, I meant decompiling to resulting code, after all optimizations done. It would be nice to see how XSLT looks compiled and optimized. I realize that might be unfeasible though.

Profiler - great idea! Let's build it.

Posted by: Oleg Tkachenko at June 4, 2007 10:41 AM

You wish!
In compiled XSLT you have some sort of meta information all variables, templates, attribute sets have recognizable names. This was done for debugger support. But almost no side effects semantics of XSLT allows compiler to move code around and XslCompiledTransform does this very aggressively. I doubt decompilation is doable.

Let's better create a profiler. Orcas doesn't have it and everything that needed to be done in Framework is already there.

Posted by: Sergey Dubinets at May 24, 2007 7:15 AM

That would *ROCK*! Would be *great* for reading code without having to manually parse through the transformation files themselves.

Posted by: M. David Peterson at May 16, 2007 1:53 AM
Post a comment




Remember Me?