Xsd to rnc (or rng) conversion (unix command line)

后端 未结 5 502
忘了有多久
忘了有多久 2020-12-30 08:00

A brief search shows that all available (uUnix command line) tools that convert from xsd (XML Schema) to rng (RelaxNG) or rnc (compact RelaxNG) have problems of some sort.

5条回答
  •  梦毁少年i
    2020-12-30 08:37

    Converting XSD is a very hard task; the XSD specification is a bit of a nightmare and extremely complex. From some quick research, it seems that it is easy to go from RelaxNG to XSD, but that the reverse may not be true or even possible (which explains your question about Trang).

    I don't understand your question about editors - if you are asking if most people end up converting between XSD and RNG by hand, then yes, I expect so.

    The best advice may be to avoid XSD if possible, or at least use RNG as the definitive document and generate the XSD from that. You might also want to take a look at schematron.

提交回复
热议问题