Hi Daniel,
I'm currently playing with the editor harness and would like to express
contraints for a couple of schemas. So I didn't quite understand what
you meant when you said that schema validation should run on the server.
Should I just use no schema validation on the editor ?
I'm perfectly ok with droping some validations and I'd sure prefer going
with a script of my own. I'll look into this and try to find something
that integrates properly with the build tool chain.
Regards,
Nelson
On 28-02-2011 23:55, Daniel Danilatos wrote:
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] <mailto:[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.