eed3si9n / scalaxb

scalaxb is an XML data binding tool for Scala.
http://scalaxb.org/
MIT License
337 stars 154 forks source link

relax ng compact syntax support #61

Open eed3si9n opened 13 years ago

eed3si9n commented 13 years ago

expectations

RELAX NG compact syntax (rnc) is a human readable alternative to XML Schema. scalaxb should support it to generate case classes from it.

ghost commented 13 years ago

RNC support would be great. Any ideas on how this should be implemented?

I'd considered writing a separate plugin that used trang to convert RNC to XSD, which would allow scalaxb to run on the XSD. Were you thinking of converting to XSD first, or a more direct implementation?

I think it's useful to be able to generate XSD from RNC, because tool support for XSD seems to be better.

eed3si9n commented 13 years ago

I would probably reuse the xsd driver (similar to what I did for wsdl), but xsd would need to be extended since rnc can write schemas xsd can't express. I probably won't use trang since it assumes named patterns to be complex types.

afternoon commented 12 years ago

+1 RNC