1 |
On Wed, 27 Jan 2016 14:39:02 +0100 |
2 |
Dirkjan Ochtman <djc@g.o> wrote: |
3 |
|
4 |
> On Wed, Jan 27, 2016 at 1:09 PM, Michał Górny <mgorny@g.o> wrote: |
5 |
> > Could you post a generated .rng and XML Schema files for comparison? |
6 |
> > They don't have to be perfect conversions, just to see how different |
7 |
> > they are. |
8 |
> |
9 |
> Here's the RNG, generated with dev-python/rnc2rng: |
10 |
> |
11 |
> https://raw.githubusercontent.com/djc/gentoo-data-dtd/metadata-rnc/metadata.rng |
12 |
> |
13 |
> The best way to convert from RELAX NG to XML Schema seems to be with |
14 |
> trang; I downloaded an older binary and a JDK on my laptop, but |
15 |
> couldn't easily get it to run. I don't really have a Gentoo machine on |
16 |
> which I want to install the whole Java shebang, so maybe someone else |
17 |
> can run a quick conversion? |
18 |
|
19 |
Thanks to you and to ulm for the XML Schema conversion. Now my points. |
20 |
|
21 |
First of all, I don't like RELAX-NG Compact at all. It looks like |
22 |
someone tried hard to combine some variation of BNF, DOCTYPE |
23 |
and something else in order to get something that is both readable |
24 |
and compact. And got a result that doesn't meet either criteria. |
25 |
It looks like some terrible mixture of over-verbose descriptive text |
26 |
format with a lot of enigmatic symbols that are not even clear what |
27 |
they apply to. |
28 |
|
29 |
Secondly, RELAX-NG and XML Schema look pretty similar in volume. |
30 |
However, XML Schema looks definitely more readable, robust and XML-ish |
31 |
(and doesn't use camelcase!). Furthermore, as far as I'm aware XML |
32 |
Schema is more widely supported (not sure if that applies to any tools |
33 |
we're considering). |
34 |
|
35 |
Therefore, I'd suggest we just ship properly hand-written XML Schema, |
36 |
with some nice comments. I don't see a reason to ship any RELAX-NG |
37 |
files unless we actually have tools that support only that. |
38 |
|
39 |
-- |
40 |
Best regards, |
41 |
Michał Górny |
42 |
<http://dev.gentoo.org/~mgorny/> |