You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Vijay Gill <vi...@gmail.com> on 2006/05/20 20:14:14 UTC
Schema for the subversion log in XML format. Want to try own XSLT.
Hi,
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.
Thanks
Vijay
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Schema for the subversion log in XML format. Want to try own
XSLT.
Posted by Morten Kvistgaard <kv...@users.sourceforge.net>.
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
Re: Schema for the subversion log in XML format. Want to try own XSLT.
Posted by Ryan Schmidt <su...@ryandesign.com>.
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
Re: Schema for the subversion log in XML format. Want to try own
XSLT.
Posted by Morten Kvistgaard <kv...@users.sourceforge.net>.
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.
Best regards
Morten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Schema for the subversion log in XML format. Want to try own XSLT.
Posted by Ryan Schmidt <su...@ryandesign.com>.
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org