De-compile a compiled stylesheet
Added by Anonymous over 15 years ago
Legacy ID: #7562088 Legacy Poster: pvallone (pvallone)
Hi, If I have a compiled stylesheet (.sxx), is it possible to decompile it on order to view the actually stylesheets? Thanks
Replies (2)
RE: De-compile a compiled stylesheet - Added by Anonymous over 15 years ago
Legacy ID: #7562170 Legacy Poster: Michael Kay (mhkay)
If you load the stylesheet into memory, you will be able to use PreparedStylesheet.explain() to get the same output as if you used -explain originally. That's the closest you will get. Many features of the original source will be lost forever, for example global variables or named templates that aren't referenced, and distinctions between different ways of writing the same thing. Also, some information that's in the compiled stylesheet might not be revealed in the explain() output. In principle though, subject to those caveats, you could reconstruct a working stylesheet by transforming the explain() output.
RE: De-compile a compiled stylesheet - Added by Anonymous over 15 years ago
Legacy ID: #7562282 Legacy Poster: pvallone (pvallone)
Awesome - thx
Please register to reply