Using ODF Relax NG schema to generate easier XML writing classes

Thorsten Zachmann t.zachmann at zagge.de
Sat Jun 11 06:53:43 BST 2011


On Friday, June 10, 2011 20:54:48 Jos van den Oever wrote:
> On Friday, June 10, 2011 20:36:36 PM Pierre wrote:
> > Also, another question about your proposal : would it be strict regarding
> > the content types ?
> > I mean : a positiveInteger attribute for a given node must remain a
> > positiveInteger, and that could even be checked at compilation time...
> 
> Yes, that would be possible.
> Note that while these checks are better than nothing it is not possible to
> completely guarantee valid ODF at compile time. There are cases where an
> attibute is allowed when another one is not present or where elements must
> occur in the right sequence. Checking values from an enumeration or types
> like positive integers is definitely possible.

Sometimes different type of attributes are possible e.g. number or text

Thorsten



More information about the calligra-devel mailing list