Hi Mukul

> 1. built in schema atomic types are still derived from
> xs:anySimpleType. as per 1.1 spec, these now need to be derived from
> xs:anyAtomicType.

The types in XML Schema 1.1 are derived from anyAtomicType and not 
anySimpleType. If you check the code in Schema11DVFactoryImpl, you'll 
notice that we are using anyAtomicType as the base for the built-in types.

        createBuiltInTypes(fBuiltInTypes, XSSimpleTypeDecl.fAnyAtomicType
);

> 2. It seems relationship between xs:anyAtomicType, xs:anySimpleType
> and xs:anyType also needs to be revisited in Xerces-J XML Schema 1.1
> code-base.

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.

>  3. The types ENTITIES, IDREFS and NMTOKENS are now (in schema 1.1)
> child of xs:anySimpleType. In 1.0 they were child of ENTITY, IDREF and
> NMTOKEN respectively. This change also needs to be revisited as well
> in Xerces schema 1.1 code-base.

This is a bug. Thanks for bringing that up. I will check in a fix for it.

Regards,
Khaled





From:
Mukul Gandhi <[email protected]>
To:
[email protected]
Date:
08/14/2010 11:01 AM
Subject:
Re: XML Schema 1.1: implementation of built-in schema types



Thanks, Michael.

It would be great if Khaled looks at this :)

I'll wait (or in general we should wait) for a change or a
communication coming from Khaled related to this part of the code-base
:)

On Sat, Aug 14, 2010 at 8:19 PM, Michael Glavassevich
<[email protected]> wrote:
> Hi Mukul,
>
> I think Khaled set up the XML Schema 1.1 DV factory. Probably should 
give
> him an opportunity to weigh in on this. He may already be aware of the
> problem and have local changes he hasn't committed yet.
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [email protected]
> E-mail: [email protected]



-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Reply via email to