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

Re: Subversion and WebDAV with Apache

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-10-11 14:59:55 CEST

On 10/10/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
> On Oct 10, 2007, at 20:24, Minesh Patel wrote:
>
> > I have set up apache with subversion and webDAV and when viewing
> > the files, is there a way to view sub-directories first then
> > regular files after. Currently it list files and folders in
> > alphabetical order. Is the file display rendering done by svn or
> > apache.
>
> The display rendering is done by mod_dav_svn. mod_dav_svn provides
> only very limited means to customize this display, but you can have
> mod_dav_svn output in XML instead of HTML, and then style that XML
> using your own XSLT stylesheet, by using the "SVNIndexXSLT"
> directive. There are sample XSLT/CSS files included in the
> distribution somewhere... Ah yes, here:
>
> http://svn.collab.net/repos/svn/trunk/tools/xslt/
>
> I am not very versed in XSLT, but I believe you can make it output
> the directories first, then the files, if that's what you want.

Looking at my XSLT that I wrote (been a while since I've been in
there), there are different XML nodes for directories and files, so
it's pretty easy to split them apart.

I have <xsl:for-each select="/svn/index/dir"> and <xsl:for-each
select="/svn/index/file"> in my XSLT.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 11 15:00:22 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.