xsd to rnc
Posted: Sat Feb 12, 2011 6:24 am
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.
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.