RE: RE: element handling in schema

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux