Or RelaxNG. Much simpler than Schema, easier to read. Supported by libxml2.
bob
-----Original Message-----
From: bulia byak <buliabyak@...400...> Sent: Apr 16, 2008 12:41 PM To: Ted Gould <ted@...11...> Cc: Inkscape Devel List inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Extensions (inx) files
On Wed, Apr 16, 2008 at 2:09 PM, Ted Gould <ted@...11...> wrote:
Yes, I'm not quite how to do this in XSD, but it seems that it has to be doable. I'd really hate to have to change the XML format just to be able to represent it in XSD. I'm not sure that's a good trade off.
Can some XML expert step up here? :)
Just don't use XSD. It's wrong to assume that of all schema languages, this one is in any way special or "official". It's just one of the many, and a quite poor one at that. As for me, I prefer Schematron, where such check would be trivial.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Wed, Apr 16, 2008 at 12:54:46PM -0500, Bob Jamison wrote:
Or RelaxNG. Much simpler than Schema, easier to read. Supported by libxml2.
-----Original Message-----
From: bulia byak <buliabyak@...400...> Sent: Apr 16, 2008 12:41 PM To: Ted Gould <ted@...11...> Cc: Inkscape Devel List inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Extensions (inx) files
On Wed, Apr 16, 2008 at 2:09 PM, Ted Gould <ted@...11...> wrote:
Yes, I'm not quite how to do this in XSD, but it seems that it has to be doable. I'd really hate to have to change the XML format just to be able to represent it in XSD. I'm not sure that's a good trade off.
Can some XML expert step up here? :)
Just don't use XSD. It's wrong to assume that of all schema languages, this one is in any way special or "official". It's just one of the many, and a quite poor one at that. As for me, I prefer Schematron, where such check would be trivial.
Hey! Thanks for all your comments. I suppose I was stuck with the XSD idea as the most 'common' approach having the most tools to work with and the one I was most familiar with it but I guess this is part the open source spirit (and what I like about it) to use to best and most sensible solutions rather than the 'bought-in' ones.
The support for RelaxNG in libxaml2 is convincing enough for me. I shall venture down that path then (scrap the XSD) and see what I can create. We all learn new things every day.
PS. There really is no way to do the validation in XSD as it stands now. -- Marcin Floryan http://marcin.floryan.pl/ [GPG Key ID: 0D5581C5]
participants (2)
-
Bob Jamison
-
Marcin Floryan