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