The old Sun RELAX NG converter is currently bundled with (Sun) "Multi-Schema Validator" - msv. With this term, you can search your distribution package repository.
For example, Fedora (e.g. 17) includes it.
Install on Fedora
Using Fedora
$ rngconv my.xsd > my.rng
Check the result:
$ xmllint --relaxng my.rng --noout some.xml
Convert to compact syntax:
$ trang -I rng -O rnc my.rng my.rnc
(trang is also available through the main Fedora package repository)
Another way (perhaps after adding the file to the syntax file):
$ trang -I rnc -O rng my.rnc my.rng
Msv seems pretty powerful - I tested it with a pretty xsd file size that uses inheritance, advanced templates and includes another xsd file.
source share