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

Re: xslt problem with subversion vhost

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-05 04:39:49 CET

On Mar 4, 2007, at 15:06, Bernhard D Rohrer wrote:

> I have setup a subversion vhost and at the mo I am getting an xsl
> error
> Error loading stylesheet: A network error occured loading an XSLT
> stylesheet:
> I know that this has been discussed before and indeed when i try to
> access it directly I am getting a 404

Under what URL do you get a 404?

> I just dunno where to put the file. I am having a strong feeling
> that I am barkign up the wrong tree with my DocumentRoot but can't
> quite figure out what would be correct :/
> DocumentRoot /var/lib/svn/shop
> SVNPath /var/lib/svn/shop

If /var/lib/svn/shop is your SVNPath (is where your repository is),
then you can set your DocumentRoot to anything you like, so long as
it is *not* that same path /var/lib/svn/shop. Create a new directory,
anywhere, in which to put your non-Subversion items. However:

> <Location "/">
> DAV svn
> SVNPath /var/lib/svn/shop
> [snip]

You have asked for the entire URL space to be mapped into the
repository. That means there is no URL for which Apache will look
into your DocumentRoot, so you may as well set it to /var/empty or
whatever your system provides that is equivalent.

> SVNAutoVersioning On
> SVNIndexXSLT "/svnindex.xsl"

So to get this to work, you will need a file svnindex.xsl committed
to the root path of your repository.

> ExtFilterDefine xslt mode=output enableenv=xsltfilter
> intype=text/xml outtype=text/html cmd="/usr/bin/xsltproc /var/lib/
> svn/shop/svnindex.xsl -"

I don't know what all this is. I'm guessing it converts Subversion's
xml/xslt output to html for the browser, which would be very cool,
but I just haven't seen it before. Do you still see the problem if
you omit this line?

To reply to the mailing list, please use your mailer's Reply To All  
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 5 07:26:36 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.