Using ODF Relax NG schema to generate easier XML writing classes

Jos van den Oever jos at vandenoever.info
Fri Jun 10 19:54:48 BST 2011


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.

Cheers,
Jos



More information about the calligra-devel mailing list