From: Alan C. <ac...@be...> - 2005-01-08 18:45:52
|
Scott, Right, the XSD Schemas were the important part: you can do anything you want to with them (and I did them by hand.) I'm adding annotations now (copying in the extracts from the dvdauthor and spumux man pages.) The header files were just an example of what you could do to not just validate XML using the XSDs, but actually generate C code from them if you wanted to. This is close to the appoach used by the Eclipse Modelling Framework in Java application development. The Glib dependency is a characteristic of the stylesheet, and not the schemas: it would be an easy matter to produce a similar stylesheet for any regime of XML element/attribute to C struct mapping. This work was really to support activity in Polidori, which uses Glib. But I thought it would be good to run the Schemas by the dvdauthor project. Sorry if my specific application of the schemas was spamlike to dvdauthor-developer. The schemas are what I wanted to show everyone. -- Alan Scott T. Smith wrote: >On Sat, 2005-01-08 at 08:42, Alan Canon wrote: > > >>Er, and these would be the .h Header files produced using XSD->XSLT->C >> >> > >How were these generated? I would probably not include them (the header >files) since they look glib specific, and my guess is that every xml >parser has its own way of dealing with it. Besides, if anything is >autogenereated I'd rather just include the source, not the result. > > Scott > > > > > |