incubator-wave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Danilatos <>
Subject Re: GWT generator for document schemas
Date Tue, 01 Mar 2011 15:21:00 GMT
I would say the simplest approach for you would be to provide a schema that
allows everything to start with, so you're free during development to do as
you wish. The purpose of schemas is to guarantee certain constraints on the
XML, so strange cases of malformed data don't have to be explicitly handled
in the code, which makes things a lot simpler. I.e. their purpose is to make
the code simpler - if it's just a bother for you then I'd advise you just
use the null schema which I believe is defined as a constant somewhere.

Στις 1 Μαρτίου 2011 2:50 π.μ., ο χρήστης Nelson Silva <> έγραψε:

> 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
>> <>> έγραψε:
>>    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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message