[domxml] namespaces / exception / extensionname

From: Date: Fri, 18 Apr 2003 10:20:27 +0000
Subject: [domxml] namespaces / exception / extensionname
Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-75@lists.php.net to get a copy of this message
Hi As said before, domxml5 developement was started and we already have some working proof-of-concept code. Now we're not sure about some "details" and I'd like to ask this list about your opinion: - Namespaces: Should we use a "domxml" namespace or just go the traditional way? the new domxml (called domxml5 for the time being) will have a fully OO interface, but it doesn't really matter if we use namespaces or not;) there's not much difference for the extension itseld - Exceptions: Here again. To use as default or not? W3C Standards rely a lot on Exceptions, so it would be nice to have and Rob summed it up quite right: "So any consensus for throwing excpetions? I cant say yea or nay over this as it go back and forth on the issue. The one thing I keep coming back to is that throwing expcetions you are now going to force the user into using try/catch - which is not a bad thing. It is something completely new and are there any other extensions out there doing it? Writing in PHP (or any other language) should have some sort of conformity otherwise people would just get fed up trying to deal with all the different nuances. But on the other hand, I would *think* that most people using the domxml extension would be knowledgeable to deal with this." - Extension Name: It looks like domxml5 will be more or less completely uncompatible to domxml4, so you have to port your applications before you can upgrade to PHP5 ('though, it should be possible to write a wrapper in PHP-Userland..). With this in mind, should we really replace the domxml with a new one or just introduce a new, different extension and fade out the old in a later php5 version. This would make upgrading to PHP5 for people using domxml much easier, as they don't have to go through the domxml code immediately. Furthermore, domxml is a very misleading name for the whole extension. domxml is not only about DOM stuff, since a long time. It has support for XSLT, XPath, Validation, XInclude, etc... Furthermore libxml2 would allow for implementing more XML stuff like XML Schema/relaxng Validation, SAX, XMLTextReader Interface etc... Therefore IMHO a more generic name would be a "Good Thing". chregu -- christian stocker | bitflux GmbH | schöneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB

« previous php.xml.dev (#75) next »