Styling Subversion with XSLT

Author: Steven Neiland

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

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 outside of the repositories path. I put them in the root htdocs of, 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.

<VirtualHost *:80>
DocumentRoot "/htdocs"
<Location "/snv">
Dav svn
SVNListParentPath on
SVNParentPath "/svn/"
SVNIndexXSLT "/htdocs/svnindex.xsl"

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

Related Blog Postings

Reader Comments

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain advertisments or appear to be created for the purpose of link building, will not be published.

Archives Blog Listing