Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: Dirkjan Ochtman <djc@g.o>
Subject: Re: [gentoo-dev] New schema language for metadata validation?
Date: Wed, 27 Jan 2016 15:28:32
Message-Id: 22184.57871.478723.24194@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] New schema language for metadata validation? by "Michał Górny"
1 >>>>> On Wed, 27 Jan 2016, Michał Górny wrote:
2
3 > First of all, I don't like RELAX-NG Compact at all. It looks like
4 > someone tried hard to combine some variation of BNF, DOCTYPE and
5 > something else in order to get something that is both readable and
6 > compact. And got a result that doesn't meet either criteria. It
7 > looks like some terrible mixture of over-verbose descriptive text
8 > format with a lot of enigmatic symbols that are not even clear what
9 > they apply to.
10
11 > Secondly, RELAX-NG and XML Schema look pretty similar in volume.
12 > However, XML Schema looks definitely more readable, robust and
13 > XML-ish (and doesn't use camelcase!). Furthermore, as far as I'm
14 > aware XML Schema is more widely supported (not sure if that applies
15 > to any tools we're considering).
16
17 > Therefore, I'd suggest we just ship properly hand-written XML
18 > Schema, with some nice comments. I don't see a reason to ship any
19 > RELAX-NG files unless we actually have tools that support only that.
20
21 Emacs nXML mode supports only RNC. Do we have a tool (i.e. a package
22 in the tree) for automatic conversion from XML Schema to RNC?
23
24 Ulrich