djc / rnc2rng

RELAX NG Compact to regular syntax conversion library
MIT License
16 stars 13 forks source link

RELAX NG Compact to RELAX NG conversion library

.. image:: https://github.com/djc/rnc2rng/workflows/CI/badge.svg :target: https://github.com/djc/rnc2rng/actions?query=workflow%3ACI .. image:: https://coveralls.io/repos/djc/rnc2rng/badge.svg?branch=master&service=github :target: https://coveralls.io/github/djc/rnc2rng?branch=master

Converts RELAX NG schemata in Compact syntax (rnc) to the equivalent schema in the XML-based default RELAX NG syntax. Dependencies:

Feedback welcome on GitHub. Please consider funding continued maintenance of this project through Patreon or GitHub Sponsors_.

.. _GitHub: https://github.com/djc/rnc2rng .. _rply: https://pypi.python.org/pypi/rply .. _Patreon: https://patreon.com/dochtman .. _GitHub Sponsors: https://github.com/sponsors/djc

History

rnc2rng was originally written by David Mertz in 2003 and published as part of a collection of files around RELAX NG on his site into the Public Domain. Hartmut Goebel published it as a package on PyPI to make it easier to access. It was mirrored on GitHub by Dustin J. Mitchell in 2010 after he fixed some bugs. Timmy Zhu_ forked his repository and contributed further enhancements. Recently, I (Dirkjan Ochtman) was interested in playing with RELAX NG Compact and started making further updates. I asked Hartmut for maintainership on PyPI and received it. While I cannot promise many updates, I should be responsive to bug reports and (especially!) pull requests.

.. _David Mertz: http://www.gnosis.cx/publish/ .. _on his site: http://www.gnosis.cx/download/relax/ .. _Hartmut Goebel: http://www.goebel-consult.de/ .. _Dustin J. Mitchell: http://code.v.igoro.us/ .. _Timmy Zhu: https://github.com/nattofriends

How to install

The usual should work:

.. code-block:: shell

$ sudo pip install .

Getting started

.. code-block:: shell

$ python -m rnc2rng test.rnc > test.rng

License

All of the code is released under MIT License.