On 18 Apr 2008, at 13:06, Marcin Floryan wrote:
On Tue, Apr 15, 2008 at 04:32:49PM +0000, Ted Gould wrote:
On Tue, 2008-04-15 at 15:12 +0200, Marcin Floryan wrote:
I was playing with some extensions recently and started wondering that it would be nice if the extension files (inx) could be made into properly formatted XML documents with their own namespace and an XSD to come with it.
YES!!! PLEASE!!!
OK. I have done a bit. Now all the .inx files are proper XML documents and have a namespace and there is schema to validate the files and ... all the current .inx files actually validate against it (I used mono- xmltool to validate but I hope it is good enough a validator). Now perhaps would be a good time to hook some validation into the build process (and into the code?) but that would probably need a small C app (all validators I have at hand now are either in Java or .NET).
The new schema file is attached and any comments are most welcome (I have applied some formatting to it so that it is easier to read than the SVN version).
Very cool! Thanks a lot for your work! I just happened to have a small C++ app lying around that uses libxml2 for RNG validation. Since you asked for something down those lines, I'll attach it to this mail. I don't know, if it is exactly what you are looking for, but I would think that it is certainly a good starting point. If you have questions concerning the app or suggestions on how to make it suitable for the needs of the Inkscape build process, feel free to drop me a line.
Cheers, Hannes