xsd to rnc

Are you missing a feature? Request its implementation here.
lxvi
Posts: 1
Joined: Sat Feb 12, 2011 6:06 am

xsd to rnc

Post by lxvi »

I'm wondering why the Generate/Convert Schema tool doesn't allow an input type of xsd.

The first hit when I search Google for "convert xsd to relaxng" is http://debeissat.nicolas.free.fr/XSDtoRNG.php which refers one to the xsl document at http://xsdtorngconverter.googlecode.com ... DtoRNG.xsl which seems to produce a valid rng file when I use it in a transformation scenario (as long as I remove the xs:annotation and its child xs:documentation elements from my schema) which oXygen then happily converts to rnc.

My admittedly limited understanding of relaxng is that it can do *more* than xsd, so it seems like it would be safe to allow conversion of xsd to rng/rnc.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: xsd to rnc

Post by george »

oXygen uses Trang for the schema conversions and Trang does not support XSD as input.
As you note there are other tools that can do that. In addition you can also try rngconvert from
http://java.net/downloads/msv/nightly/
You can easily integrate this as external tool in oXygen and apply it on the current schema if you use editor variables when you create the command line for the external tool.

Last time I checked the license did not allow distributing MSV in a commercial product but now looking at the project it seems it is not that case anymore so we will look again and consider including this to enable conversion from XSD.

Best Regards,
George
George Cristian Bina
Post Reply