styling-subversion-with-xslt
Published: 27-Nov-2010
Tags: , ,

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.

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

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

Post a Comment

Comment Etiquette:

  • 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 or appear to be advertisments, will not be published.

We are all adults here so play nice.

*
*



 

Archives Blog Listing

 

Tag Listing