1 |
>>>>> On Tue, 2 Feb 2016, Robin H Johnson wrote: |
2 |
|
3 |
> Is Trang still actively maintained by upstream? Last release looks |
4 |
> like 2009? |
5 |
|
6 |
No idea. It seems to work just fine, though. |
7 |
|
8 |
> It also cannot convert FROM XML-Schema, only TO XML-Schema. |
9 |
> There is also MSV, dev-java/msv, with a last release in 2013. |
10 |
|
11 |
Hm, how does one use MSV for conversion? There's little documentation |
12 |
included with the package. |
13 |
|
14 |
>> >>>>> On Wed, 27 Jan 2016, Ulrich Mueller wrote: |
15 |
>> > Do we have a tool (i.e. a package in the tree) for automatic |
16 |
>> > conversion from XML Schema to RNC? |
17 |
>> Since nobody has replied to this, I suppose that we have no such |
18 |
>> tool? That would be a strong argument for RNG as the source format. |
19 |
|
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 |
29 |
> warning that some RNG/XML-Schema constraints cannot be represented |
30 |
> in DTD. |
31 |
|
32 |
It would be nicer if these were released under a free software |
33 |
license. I don't think that http://bsp.mits.ch/download/lizenz |
34 |
qualifies (as it allows only private use and distribution at no |
35 |
charge). Sorry to be pedantic. |
36 |
|
37 |
> Both Trang and MSV are also Java, whereas the XSLT transforms are |
38 |
> usable without Java. |
39 |
|
40 |
Please correct me if I'm wrong, but my general impression is that |
41 |
the situation with respect to converters leaves much to be desired. |
42 |
At least, if we require a tool that is both well maintained and free |
43 |
software. |
44 |
|
45 |
Ulrich |