Styling Subversion with XSLT

Published: {ts '2010-11-27 00:00:00'}
Author: Steven Neiland
Site Url: http://www.neiland.net/article/styling-subversion-with-xslt/

While browsing a repository in a web browser it quickly becomes appearent that the default styling is a bit bland. Fortunately we can style the repository listing up by using "SVNIndexXSLT".

SVNIndexXSLT allows us to call a xsl transformation on the repository listing to apply css styling. This file and its associated files (ie css) must exist in yourdomain.com outside of the repositories path. I put them in the root htdocs of yourdomain.com, but they can as easily be in "/htdocs/svnstyles/".

You can find an example of svnindex.xsl in the "/tools/xslt" directory of the subversion download.

ServerName yourdomain.com DocumentRoot "/htdocs" Dav svn SVNListParentPath on SVNParentPath "/svn/" SVNIndexXSLT "/htdocs/svnindex.xsl" ---snip---

Now when you browse your repositories you should see some nice styling.