Hi Khaled,
Thanks for the reply. That was helpful :)
I quickly looked at the code-base and below are few suggestions, about how
to make anyType a base type for anySimpleType.
On Sat, Aug 14, 2010 at 9:00 PM, Khaled Noaman <[email protected]> wrote:
> anyAtomicType has anySimpleType as its base. However, since we are using
> the same static instance used by XML Schema 1.0, anySimpleType does not have
> anyType as it base as specified in XML Schema 1.1. Right now anySimpleType
> is an instance of XSSimpleTypeDecl which only expects a base type to be an
> XSSimpleTypeDecl object. So, I need to look into that one and see what's the
> best way to represent anySimpleType in XML Schema 1.1.
>
>
perhaps creating a new constructor for XSSimpleTypeDecl something like
following:
protected XSSimpleTypeDecl(XSComplexTypeDecl base ... ) {
}
and making following declaration as public in SchemaGrammar:
private final static XSComplexTypeDecl fAnyType11 = new XS11AnyType();
and changing
static final XSSimpleTypeDecl fAnySimpleType = new XSSimpleTypeDecl(null,
"anySimpleType", DV_ANYSIMPLETYPE, ORDERED_FALSE, false, true, false, true,
XSConstants.ANYSIMPLETYPE_DT);
TO [1]
static final XSSimpleTypeDecl fAnySimpleType = new
XSSimpleTypeDecl(SchemaGrammar.fAnyType11, "anyType", DV_ANYSIMPLETYPE,
ORDERED_FALSE, false, true, false, true, XSConstants.ANYSIMPLETYPE_DT);
(change DV_ANYSIMPLETYPE and XSConstants.ANYSIMPLETYPE_DT also).
in XSSimpleTypeDecl.
I think, something like AnyTypeDV doesn't exist
in org.apache.xerces.impl.dv.xs. I guess, we may need to create this as well
and link it with [1] above.
you may need to evaluate these points and make changes as appropriate.
--
Regards,
Mukul Gandhi