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

Re: RELAX NG schema for svn log --xml [was: Re: --xml on all svn commands]

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2005-09-28 13:40:26 CEST

Quoting "Peter N. Lundblad" <peter@famlundblad.se>:

> Lets' combine those benefits and we get RELAX NG. Attached are schemas for
> the log ouput:
> - .rnc: RELAX NG compact syntax
> - .rng: RELAX NG XML syntax (for comparison)
> - .xsd: W3C XML Schema
>
> To get the .rnc file, I took log.dtd and put it through trang (a schema
> converter from James Clark). Then I fixed it up and extended it with
> datatypes and constraints not expressible in the DTD (such as an optional
> group of attributes: either both copyfrom-path and copyfrom-rev or none of
> them).
>
> To get the .xsd file, I just had to convert it with trang - no manual
> work. I'm no XSD expert, but it looks like the results are satisfying.
>
> My point is that we could store .rnc in the repository (or .rng if we
> like, but that's less human-friendly) and get both DTDs and XML Schema
> automatically. RELAX NG is appropriate because:
> - It is simple and easy to read and write (part because it to some extent
> uses similar syntax to the DTD)
> - It is the most expressive of the languages.
> - You can map to all the other languages from a common source, with some
> approximations where the target language is less expressive.
>
> Note that the provided .rnc file is not perfect. If we wan to go this
> route, we should take the chance to modularize it by factoring out common
> stuff.
>
> Opinions?
>
> Regards,
> //Peter

Looks very good indeed.

The xsd file is perfect for me, everything that I have in my version is in yours
too. On top of that yours is already uptodate with the trunk/1.3 branch ( and
has annotations ).

The original .rnc file seems to be a mixture between dtd & xsd, maybe I should
take some time to study RelaxNG, looks interesting.

If you only store the .rnc file in the repository, how do you propose users get
the XSD/DTD files? Can the trang tool you mention be added to the official
build procedure?

regards,

Lieven.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 28 13:42:21 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.