-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim Fulton wrote: > Shane Hathaway wrote: > >> Tres Seaver wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Sidnei da Silva wrote: >>> >>>> On Thu, Jan 26, 2006 at 02:02:19PM +0000, Chris Withers wrote: >>>> | Sidnei da Silva wrote: >>>> | > >>>> | >My original intention was to put the config file location in the >>>> | >ZConfig schema, but that's *waaaay* too painful right now. >>>> | | What's the specific problem here? I find adding to ZConfig >>>> schemas | pretty easy... >>>> >>>> Yet you find ZCML declaring namespaces in ZCML files >>>> annoying *wink*. Sometimes I don't understand you :) >>> >>> >>> >>> >>> +1 to that. I think Chris doesn't really believe in the Second Law of >>> Python (according to the prophet Peters). >> >> >> >> No, Chris just doesn't like XML namespaces. You can still have >> explicitness without XML namespaces. >> >> I think I'm starting to grasp the XML division among Zope developers. >> ZConfig schema definitions use a conventional style of XML with deeply >> nested elements, text nodes, and no namespaces, while ZCML uses its >> own style with minimal nesting, many attributes, and many namespaces. > > > This style is hardly unique to ZCML. Many XML languages work this > way, including, for example, XML Schema Definitions.
The XML folk talk about "document-centric" versus "data-centric" applications as having essentially incompatible semantics for their XML; I think we are staring at a similar split. Using elements instead of attiributes has the downside that constraining the type of the element is much trickier when spelling pattern-based schema-validation templates. Elements also tend to introduce "spurious whitespace" problems when used for semanticall "simple" values. Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD2/q6+gerLs4ltQ4RAqydAJ93fnitXiwqEvNDChEIrphI8cAUugCfbJ/0 ZgNgLaJd5DdDw40GG2nYkqs= =vfly -----END PGP SIGNATURE----- _______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com