Similarly it would be useful to have the actual SchemaAttDef.
Currently unlike the SchemaElementDecl. SchemaAttDef are always
copied into the ComplexTypeInfo whereever a reference to a global attribute
is made. Likewise when a complex type is inherited,
SchemaAttDefs are copied. I believe this is due to the fact that they have
use definitions.
Would it not be beneficial to store, the referenced SchemaAttDef.
That way, I can find out what is the actally attribute which
is being referenced.
For instance...
<complexType name="X">
...
<attribute ref="Other:A1">
</complexType>
<complexType name="Y">
...
<extension base="X">
</complexType>
Here there are three SchemaAttDef, one for the global attribute decl,
one for X and other for Y.
Given Y, it is hard to trace back and find if A1 belongs to Y or X or is
a global reference. I did a local change to have another member called
class SchemaAttDef
{
SchemaAttDef* fReferencedAttDef;
}
Thanks
Kiran
-----Original Message-----
From: Gareth Reakes
To: [EMAIL PROTECTED]
Sent: 11/29/02 9:32 AM
Subject: Re: Request to open interface
Hey,
> I need to get access to all existing simple types.
> (btw. The full access to all complex types can be requested by
> RefHashTableOf<ComplexTypeInfo>* getComplexTypeRegistry() const;
> method of the SchemaGrammar
> )
OK, Ill add it in.
> --------------------------
> ODMTypeInfo
>
> Will it appear in the next release?
I really hope so. Its quite far along. Its taken a bit longer than I
hoped
because I'm also trying to start setting up some stuff for PSVI.
> I may provide you with the path (also exists in bugzilla) fixing the
> datatype types hierarchy,
Whats the bug number? Ill take a look.
> as well as the methods which return Simple and
> Complex type names
I have that in there already :) I needed it as well.
>, and information if the type was declared anonymously.
Don't have that. Ill happily add it in. Could you check out what the
method
should be called in the PSVI stuff if appropriate?
> I'm concerned that this code appear in the coming Xerces release.
>
As am I, Id like to release an alpha of Pathan 2 before Christmas and I
need the DOMTypeInfo in there so we can use a stable build. I really
dont
see a problem. Im sure I can finish all this stuff within a week (devel
time not elapsed). At the very least Ill commit all of the supporting
stuff.
Gareth
--
Gareth Reakes, Head of Product Development
DecisionSoft Ltd. http://www.decisionsoft.com
Office: +44 (0) 1865 203192
---------------------------------------------------------------------
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]