Re: [Zope3-dev] XML Schema support on Zope3
Julien Anguenot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I started to add an XML Schema suppport on Zope3. It's within the z3ecm repository there : http://svn.nuxeo.org/trac/pub/browser/z3lab/zope/xmlschema/trunk/ You may check my related blog entry there : http://blogs.nuxeo.com/sections/blogs/julien_anguenot/2005_08_12_xml_schema_support_for Note it's using lxml as well (I love lxml :)) Having XForms support after this will be a lot easier ;) Comments / help are welcome. This looks very interesting. Good work! Could you elaborate a bit on how you see this fitting in with XForms? Could you tell a bit of a story of how these schemas would be useful for XForms and for other forms processing? How hard do you think it will be to handle more complex constraints. You can express constraints in XSD beyond simple data types. (I'm not very knowledgeable about XSD, but I believe you can express the same sorts of constraints you can express with regular expressions in Python or, for numbers use expressions involving comparisons. These would have to be converted to Python. How will you deal with complex schemas? For example, can you imagine using something like the xpdl XSD as a schema? Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] XML Schema support on Zope3
On 8/12/05, Julien Anguenot [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I started to add an XML Schema suppport on Zope3. It's within the z3ecm repository there : http://svn.nuxeo.org/trac/pub/browser/z3lab/zope/xmlschema/trunk/ You may check my related blog entry there : http://blogs.nuxeo.com/sections/blogs/julien_anguenot/2005_08_12_xml_schema_support_for Note it's using lxml as well (I love lxml :)) Having XForms support after this will be a lot easier ;) Comments / help are welcome. J. - -- Julien Anguenot | Nuxeo RD (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFC/OFIGhoG8MxZ/pIRAvY+AKCEcPJb7CrM73xdm5aUgrW2gEbexwCgiQwu m1edCBXaQIVKQt4lFjxRwe0= =S8XP -END PGP SIGNATURE- ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/alecmunro%40gmail.com If you will excuse the terminology, this is hot. :) I'm sure there are limitations, as Gary suggested, but simply having the schemas readily available in an XML format is great. On one hand, this gives me something Flash can use so it knows what to do with the data I pass it. That alone is very appealing. However we also have quite a bit of XML content that I want to import to Zope in the near future. If I'm able to use the existing schemas for that, that will be great. Thanks! Alec Munro ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] XML Schema support on Zope3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I started to add an XML Schema suppport on Zope3. It's within the z3ecm repository there : http://svn.nuxeo.org/trac/pub/browser/z3lab/zope/xmlschema/trunk/ You may check my related blog entry there : http://blogs.nuxeo.com/sections/blogs/julien_anguenot/2005_08_12_xml_schema_support_for Note it's using lxml as well (I love lxml :)) Having XForms support after this will be a lot easier ;) Comments / help are welcome. J. - -- Julien Anguenot | Nuxeo RD (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFC/OFIGhoG8MxZ/pIRAvY+AKCEcPJb7CrM73xdm5aUgrW2gEbexwCgiQwu m1edCBXaQIVKQt4lFjxRwe0= =S8XP -END PGP SIGNATURE- ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] XML Schema support on Zope3
On Aug 12, 2005, at 1:50 PM, Julien Anguenot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I started to add an XML Schema suppport on Zope3. Great! FWIW, I looked at this a couple of years ago and concluded that, with a reasonable amount of work, zope interfaces could support all of XMLSchema, but not vice versa. I started thinking about namespace extensions to XMLSchema to be able to express some of the zope.interface capabilities, but discarded it, since the real advantage we saw to XMLSchema is being able to use off-the-shelf tools and interoperate easily. So, while I think this can be an exciting and compelling approach for some problem domains, IME you won't get (useful) round-trip capabilities unless you constrain yourself to the limitations of XMLSchema. We weren't willing to accept this at the time. That's not to say I'm against it, at all: just an observation. Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] XML Schema support on Zope3
On Aug 12, 2005, at 2:06 PM, Gary Poster wrote: On Aug 12, 2005, at 1:50 PM, Julien Anguenot wrote: I started to add an XML Schema suppport on Zope3. Great! FWIW, I looked at this a couple of years ago and concluded that, with a reasonable amount of work, zope interfaces could support all of XMLSchema, but not vice versa. ... BTW, the obvious following question to my email is how are they insufficient? I did this two years ago, and sadly don't remember the details, so feel free to ignore me as without proof. To me, though, it is to be expected. XMLSchema is neither omniscient nor Turing complete. Programming languages at least have number two. Moreover, we control zope.interface, which is a blessing and a curse. Problems that fall out of our current framework are only an editor-session away--and yet a lot fewer people have drunk our zope.interface Kool-Aid--or are likely to drink--than the XML Schema Kool-Aid. So again, not intended to be throwing cold water, just observing. For some use cases, such as making a system designed to be customized by minimally-trained users (yours, AIUI), the advantages of XMLSchema are likely more important than its disadvantages. Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com