Gentoo Archives: gentoo-project

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-project@l.g.o
Cc: Gentoo Council <council@g.o>
Subject: Re: [gentoo-project] Call for Agenda Items -- Council Meeting 2016-02-14
Date: Tue, 02 Feb 2016 22:40:51
Message-Id: robbat2-20160202T215823-917938453Z@orbis-terrarum.net
In Reply to: Re: [gentoo-project] Call for Agenda Items -- Council Meeting 2016-02-14 by Ulrich Mueller
1 Several of these questions were already answered in the #gentoo-infra
2 chat that predated the mailing list discussion; I repeat the details
3 here because it dispels the other concerns.
4
5 On Tue, Feb 02, 2016 at 10:11:40PM +0100, Ulrich Mueller wrote:
6 > > I'd vote for XML-Schema as well, but if there are good transforms
7 > > available, i'll live with RNG.
8 > Conversion from RNG/RNC to XML-Schema can be done with app-text/trang,
9 > for example. The question (which I had asked in -dev a few days ago)
10 > is if there is a conversion tool for the opposite direction:
11 Is Trang still actively maintained by upstream? Last release looks like
12 2009? It also cannot convert FROM XML-Schema, only TO XML-Schema.
13 There is also MSV, dev-java/msv, with a last release in 2013.
14
15 > >>>>> On Wed, 27 Jan 2016, Ulrich Mueller wrote:
16 > > Emacs nXML mode supports only RNC. Do we have a tool (i.e. a package
17 > > in the tree) for automatic conversion from XML Schema to RNC?
18 > Since nobody has replied to this, I suppose that we have no such tool?
19 > That would be a strong argument for RNG as the source format.
20 All you need is xsltproc, which is part of libxslt/libxml.
21
22 XSL transform: XSD -> RNG
23 https://github.com/epiasini/xsdtorng
24
25 XSL Transform: XSD -> DTD
26 http://bsp.mits.ch/code/xslt/zxsd2dtd
27 http://crism.maden.org/consulting/pub/xsl/xsd2dtd.xsl
28 These two are very similar, differing only in a comment block warning
29 that some RNG/XML-Schema constraints cannot be represented in DTD.
30
31 Both Trang and MSV are also Java, whereas the XSLT transforms are usable
32 without Java.
33
34 --
35 Robin Hugh Johnson
36 Gentoo Linux: Developer, Infrastructure Lead, Foundation Trustee
37 E-Mail : robbat2@g.o
38 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

Replies