Hi Pavani,

Just wanted to let you know that I'm neither ignoring you nor have I
forgotten about this message :-).  I've just been busy doing other
stuff--like getting ready to port over the DFAContentModel into the new
Object framework--and haven't had time to look in to this.  Hopefully
tomorrow...

Cheers,
Neil

Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  [EMAIL PROTECTED]



Pavani Mukthipudi <[EMAIL PROTECTED]> on 09/18/2001 10:45:38 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  [Xerces2] XSDHandler - mutual <include>s



Hi Neil,

A snippet of the current XSDHandler code :

           else if ((localName.equals(SchemaSymbols.ELT_INCLUDE)) ||
                     (localName.equals(SchemaSymbols.ELT_REDEFINE))) {

                     Object[] includeAttrs =
fAttributeChecker.checkAttributes(child,
                                                    true,
currSchemaInfo.fNamespaceSupport);
                schemaHint =


(String)includeAttrs[XSAttributeChecker.ATTIDX_SCHEMALOCATION];
                fAttributeChecker.returnAttrArray(includeAttrs,


currSchemaInfo.fNamespaceSupport);
                newSchemaRoot = getSchema(EMPTY_STRING, schemaHint);
            }
            ...
               XSDocumentInfo newSchemaInfo =
constructTrees(newSchemaRoot);


Here before the getSchema() is called, a check has to be made with the
XSDocumentInfo objects in the 'dependencies' vector and 'fDependencyMap'
to find whether or not the new schema has already been traversed. But,
at this point, the only information we have regarding the new schema is
'schemaHint' which is not a field in XSDocumentInfo. So, how do we make
the check ?

I can see 3 ways of doing this :

1. use a vector fIncludeLocations (as in 1.4.x) to store (schemaHint,uri)
2. introduce a new field 'schemaHint' in XSDocumentInfo.
3. parse the new schema (again), get the Document object and then use
   that to compare.

Did i miss something ?


Secondly, if fTraversed is used to hold completely traversed schemas
(i.e.XSDocumentInfo objects),how will it help us in handling mutual
<include>s ?

Am i wrong in any sense ? if yes, please correct me.


Pavani

--

Pavani Mukthipudi
Sun Microsystems Inc.

Phone: 080 - 2298989   Extn: 87390


---------------------------------------------------------------------
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