On Tue, Mar 25, 2003 at 09:09:09AM -0500, Sandy Gao wrote: > 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.
Ok, I think I've an idea about that. If instead of having an entry in SchemaGrammar for the defaults, we resolve the default value in XSDAttributeTraverser and XSDElementTraverser using the DocumentInfo (which has those defaults in there), thus having only QUALIFIED or UNQUALIFIED in the fForm of XSElementDecl and XSAttributeDecl (which I added in another set of patches today) and not -1 for unspecified anymore ? Then we don't need to access the defaults anymore, wouldn't that work ? -- # 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]
