Author: Steven Neiland
Published:

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 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.

Related Blog Postings

What Do You Think?

Reader Comments

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.
  • Comments that appear to be created for the purpose of linkbuilding to commercial sites will be removed.

We are all adults here so play nice.

*
*



Archives Blog Listing

Tag Listing

Learn CF In A Week

Treehouse

 
Fork me on GitHub