[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: Morten Kvistgaard <kvistgaard_at_users.sourceforge.net>
Date: 2006-05-21 14:39:47 CEST

Ryan Schmidt wrote:
>
> 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?
[snip]
>
> 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.

Sorry about the noise. I should have read more than just the first line
of the original message.

If I remember correctly (and by now you should probably treat that with
more than a grain of salt *g*), the XML output from mod_dav_svn includes
an inline DTD (and it doesn't include the repo name).

Parsing the URL to extract the repo name will have to rely on a naming
conventions for the location to be successful, but it's doable. E.g. in
the case of subversion itself the URL is
http://svn.collab.net/repos/svn-xml/, and extracting the repo name from
the URL could be done with Javascript like this in the XSL
window.location.pathname.match(/^\/repos\/(.*)-xml\/.*/)[1]

If this approach is a good idea or not is another question, but it's
possible.

/Morten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 21 14:41: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.