Hi Stef,

Thanks for the patch.

> Here is a patch to add access to elementFormDefault and
> attributeFormDefault.

Unfortunately, it doesn't work that way. One schema grammar in Xerces
includes all components that belong to a certain namespace. These
components can come from different schema documents (via <include> and
<redefine>). And the different schema documents can have different
attribute/elementFormDefault values. So the single value on the grammar
object can't reflect what was in all those schema documents.

> I also fix what I think is a bug in XSDHandler, because dDoc2SystemId
> seems to have Document objects as keys.

Yes, it's a bug, and your change looks good. I'll commit it. Thx a lot.

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



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




Hello,

Here is a patch to add access to elementFormDefault and
attributeFormDefault.
I also fix what I think is a bug in XSDHandler, because dDoc2SystemId
seems to have Document objects as keys.
--
# 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]

#### SchemaGrammar.java-patch has been removed from this note on March 25
2003 by Sandy Gao
#### XSDHandler.java-patch has been removed from this note on March 25 2003
by Sandy Gao

Attachment: ATTBC04U
Description: Binary data

Attachment: ATTBGF1J
Description: Binary data

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

Reply via email to