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