Hi Nelson, You'll probably find that XSD, RelaxNG etc can express a lot more constraints than are possible in wave schemas, because some constraints don't play well with transform (we desire the property that two schema-valid operations are still guaranteed to be valid after transform, and so things such as sibling relationships aren't possible to enforce). Thankfully, parent-child relationships are expressible.
That said, as long as you're happy for the generator to drop certain validations that are too strict, then this sounds like a cool idea. I don't know if anyone's tried this before. But I would ask, why bother with a GWT generator, as opposed to anything else that could spit out java code including a hand-rolled script? In any case, if you have schema validation at all, you'd want it to run on the server, where there's no GWT. Regards, Dan Στις 28 Φεβρουαρίου 2011 3:18 μ.μ., ο χρήστης Nelson Silva < [email protected]> έγραψε: > Hi all, > > I'd like to be able to use a schema (XSD, DTD or RelaxNG) and produce a > DocumentSchema. I was thinking of using a GWT generator to create the > necessary DocumentSchema subclass at compile time but would like to know if > anyone has done anything similar before doind this. > > Thanks in advance. >
