Wednesday, 10 March 2010
Another mod_dav_svn idea
Some online storage (WebDAV) services provide mechanisms to share specific resources with others easily: usually, a link can be generated that allows access to the specified resource within the online storage (but can't be used to access any other resources). That way it's easy to share documents without having to create user accounts, set passwords and apply the corresponding ACL settings. It would be pretty cool if such a feature were to be implemented in mod_dav_svn (actually, mod_dav might be the more suitable module for this).
On another note: SVNIndexXSLT might be a good way to implement HTML output containing RSS feed links for this idea. The benefit would be not having to patch mod_dav_svn's source code (search for "gen_html") and thus to create an independant module that builds upon mod_dav_svn.
Update: As it turns out, using the SVNIndexXSLT is a no-go because there is no practical way to determine the current URL using XSLT in that context: the items in the xml document lack the basepath and unparsed-entity-uri() is not implemented in TransforMiiX (Firefox's XSLT engine) for determining the basepath later on. Sure, using the HTTP referrer on the server-side should work for most use-cases, but that's too hackish for my taste.
[Trackback URL for this entry]
