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

RE: Re: Displaying a README

From: Stephen Warren <swarren_at_paramanet.com>
Date: 2004-04-05 17:02:55 CEST

> From: Lübbe Onken [mailto:l.onken@rac.de]
>
> Sander Rijken wrote:
>
> > Another solution is using the XSLT parameter. You can then customize
> > what the repository looks like in the browser (and thus add
> > the comment you want)
> Sounds good. But then the readme would be there for every
> level of the
> repository? I would like to restrict the readme to only be visible in
> the root of each repository. Is that possible with XSLT?

Not that I've setup XSLT, so take this with a pinch of salt:

I'm assuming in XSLT you can mix in arbitrary HTML into your output. So, instead of just linking to e.g. "readme.html", link to "/some/absolute/directory/readme.html". Then, you'll only need to store the readme.html in one place.

Perhaps you were saying you didn't want the readme link in each repository directory when browing? Hmm. I'm not sure how to do that... (Perhaps it's useful so people are more likely to see it) Perhaps you can have Apache run a filter over the result of the XSLT output, and perhaps generate a server-side include, which can be a CGI script, which can only output the readme text/link for the directory(ies) where you want it? Seems overkill, though...

--
Stephen Warren, Software Engineer, Parama Networks, San Jose, CA
http://www.wwwdotorg.org/work_contact/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 5 17:04:10 2004

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.