Second Life of a Hungarian SharePoint Geek

October 6, 2011

Hacked solutions in the out of the box SharePoint files

Filed under: Fun, SP 2010 — Tags: , — Peter Holpar @ 20:57

This post is really just a quick and funny side note from the not-always-so-funny life of a SharePoint developer.

A few days ago I had to work with the default XSL files located at 14\TEMPLATE\LAYOUTS\XSL. One of those files is internal.xsl. Opening that file I found an evidence of the fact that not only me, but other developers do sometimes hacks as well to achieve their goals. Even at Microsoft.

At the very beginning of the file there is a comment:

<!– This is a hack ensuring that XSLT runtime tables are changed incrementally. –>

And the match attribute of the template is even more surprising:

<xsl:template match="Hack-Hack-Hack">

After this I searched for other files containing the word hack, and there are really a few one. The SP.UI.Pub.Ribbon.debug.js contains for example a variable called hackElement.


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: