Using ODF Relax NG schema to generate easier XML writing classes

Pierre pinaraf at pinaraf.info
Fri Jun 10 19:24:08 BST 2011


On Friday 10 June 2011 12:49:18 Jos van den Oever wrote:
> On Friday, June 10, 2011 08:22:04 AM Jos van den Oever wrote:
> > Can you think of a reason why this would not work?
> 
> I can now. The circular nature of element nesting make is harder to create
> these classes. E.g. office:document can have (at some depth) a
> "office:image" which can have an "office:document" inside.
> 
> Who can think of an elegant solution for this?
> 
> Find my first attempt attached.
> 
> Cheers,
> Jos

I can't see that as a problem, with a good class definition...
What is the problem exactly ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110610/0bcefd0b/attachment.sig>


More information about the calligra-devel mailing list