Right, "publicKey" must be (explicitly) qualified. But the fundamental
reason isn't because of the "form"attribute, but because the attribute
declaration has a {target namespace}.

So the only thing you need to check is whether the attribute declaration
has a non-null target namespace.

(Note that global attribute declarations also have {target namespace}s,
hence their corresponding attributes in the instance must be explicitly
qualified. But they have nothing to do with "form".)

Hope this helps,,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                       
                                         
                      Stef Epardaud                                                    
                                         
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]            
                                
                      m>                       cc:                                     
                                         
                                               Subject:  Re: patches to add 
attribute/elementFormDefault support for            
                      03/25/2003 09:55          SchemaGrammar                          
                                         
                      AM                                                               
                                         
                      Please respond to                                                
                                         
                      xerces-j-dev                                                     
                                         
                                                                                       
                                         
                                                                                       
                                         



On Tue, Mar 25, 2003 at 09:39:05AM -0500, Sandy Gao wrote:
> There seems to be some misunderstanding of the meaning of "form". It
> doesn't define how instance documents are validated/serialized. Instead,
it
> defines whether an element/attribute declaration has the same namespace
as
> the target namespace of the schema document.

Sure enough, I can very well be misunderstanding, as I always get lost
in the Schema specs. But a colleague of mine pointed me to this page:
http://www.w3.org/TR/xmlschema-0/#QualLocals
(second example of 3.2)
which seems to say that the 'publicKey' must be qualified in the
instance document , even if the namespace would be implicit.
That's my understanding of it, of course, so feel free to enlighten me :)

Thanks.
--
# Stef Epardaud, # Teachers have potentially more power than military,
# Java Defeater  #   the former can teach us how to not need the latter.
#     Earth      # Lunatech Research,
#  Solar System  #   soon we'll quit researching and start finding...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to