[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Customizing the look of SVN repo in Browser

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-11-28 16:31:04 CET

On Nov 28, 2007 9:58 AM, Theuns Heydenrych <Theuns@softsim.co.za> wrote:
>
>
>
>
> HI All
>
>
>
> I have trouble customizing the look of the browsing
>
> Of the SVN repo.
>
> First I battled to get apache 2.2 to use the svnindex.xsl
>
> In the C:\svn\XLT directory. After looking in the error log file
>
> I figured out apache wants it in the htdocs directory. After copying
>
> The file in the htdocs directory I could browse the SVN repo.
>
>
>
> When modifying the xsl file I could see no change in the presentation
>
> of the html in the browser. After renaming the xsl file so that apache
>
> don't find it , I could still browse the SVN repo through the browser??
>
>
>
> Can somebody please give me some pointers in what do I do wrong.
>
> I am using Apache 2.2 and SVN 1.4.5 and apache is installed in the
>
> Program files directory on Windows XP service pack 2.
>
> The SVN repository is in c:\svn
>
>
>
> The location part in the apache config file look like this.
>
> <Location /svn>
>
> DAV svn
>
> SVNParentPath C:/svn
>
> SVNIndexXSLT "c:/svn/xslt/svnindex.xsl"
>
> AuthType Basic
>
> AuthName "Subversion repository"
>
> AuthUserFile "C:/Program Files/Apache Software
> Foundation/Apache2.2/etc/svn-auth-file"
>
> Require valid-user
>
> </Location>

SVNIndexXSLT needs to be a relative or absolute URL sent to the
browser; it'll be included in the XML that SVN sends to the client as
an xml-stylesheet directive, leaving your browser to download and
apply the stylesheet (the transformation is not done on the server).

For example, if you put your XSL in the root of htdocs, then you'll
have the following in the Apache config:

SVNIndexXSL "/svnindex.xsl"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 28 16:31:32 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.