RE: [SOAP] RE: element handling in schema
| From: | Adam Maccabee Trachtenberg | Date: | Mon, 28 Mar 2005 19:05:48 +0000 |
| Subject: | RE: [SOAP] RE: element handling in schema | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1797@lists.php.net to get a copy of this message | ||
On Mon, 28 Mar 2005, Dmitry Stogov wrote:
> > Is there (out of curiosity) anyway to handle
> > multiple attributes with the same local name that are in different
> > namespaces?
>
> No way.
>
> http://www.w3.org/TR/REC-xml-names/#uniqAttrs
If I read this correctly, you can have attributes with the same local
name, as long as they are bound to different namespaces. (Or one is in
a NS and one is not.)
I think that's what George is getting at, i.e.
<foo xmlns:ns1="a" xmlns:ns2="b" ns1:bar="x" ns2:bar="y"
/>
You can have two "bar" attributes, as ns1 is "a" and ns2 is "b", so
they are distinct.
-adam
--
adam@trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!