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

Re: Schema for the subversion log in XML format. Want to try own XSLT.

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-21 01:57:14 CEST

On May 21, 2006, at 00:44, Morten Kvistgaard wrote:

> Ryan Schmidt wrote:
>
>> On May 20, 2006, at 22:14, Vijay Gill wrote:
>>
>>> Where can I find the schema for the XML log generated by the
>>> mod_dav_svn which can be used to present a repository in web browser
>>> using custom xslt?
>>>
>>> I am trying to modify the xsl file that comes with subversion and
>>> want
>>> to show the name of the repository also, but cannot find such
>>> information.
>>
>> I do not know where the schema is. I was also unable to find the
>> repository name in the produced XML. I can't find an open feature
>> request about this either.
>
> Subversion has RELAX NG schemas. Check this repository url:
> http://svn.collab.net/repos/svn/trunk/subversion/svn/schema/log.rnc
>
> Some XML parsers support RELAX NG natively, and there are also
> tools to convert RELAX NG into XML Schemas or DTD's. For more
> information about RELAX NG take a look at http://www.relaxng.org.

Morten,

Vijay wasn't asking about the XML output of svn log or the other svn
command-line actions, for which I see those schemas; he was asking
about the XML output of mod_dav_svn when viewed in a web browser
using the SVNIndexXSLT directive; I don't see a schema for that in
the above directory. For those also using the SVNParentPath
directive, there are going to be multiple repositories, but there
doesn't seem to be a way to show the repository name on the index
pages, because it is not in mod_dav_svn's XML response.

When I worked on improving our server's directory listings a few
months ago, I entertained the possibility of having JavaScript code
in the page to parse the repository name out of the address bar, or
forgoing the built-in XML/XSLT entirely (since I'm not comfortable
with it anyway and not all browsers support it) and instead having a
(PHP) script generate the Subversion directory listings by calling
svn ls or using the language bindings. But then more important things
came up and I never tried out either approach.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 21 01:58:21 2006

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.