O.K. - when I started thinking about this a little more, it didn't make
sense.
I believe xerces is correct in not allowing the ur-type as a base in a
simple type definition.

I found the following in Section 3.13 of the Structures spec:

"The simple ur-type definition must not be named as the base type
definition of any user-defined simple types:   as it has no constraining
facets, this would be incoherent".

However, I believe the following is valid - I still need to check whether
we support it...  If we don't, I'll fix that up.
 <xsd:element name="anything" type="xsd:anyType" />

Lisa.


---------------------- Forwarded by Lisa Martin/Toronto/IBM on 02/12/2001
05:53 PM ---------------------------

"Lisa Martin/Toronto/IBM" <[EMAIL PROTECTED]> on 02/12/2001 04:56:36 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: anyType supported for simpleType?



Hi Holger,
I believe this is a bug.
I added support for "anyType" as a valid base for complexTypes in 1.3.0
when I made the CR changes (it actually wasn't permitted as a base in
1.2.3).    It looks like we need to fix up simpleType handling (and
possibly other areas) as well.
I'll look into it.

Lisa.


Holger Juschkewitz/Germany/[EMAIL PROTECTED] on 02/12/2001 11:27:04 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  anyType supported for simpleType?




Hi,

I've got a problem to NOT constrain the content of my simple types. The
primer tells me that 'anyType' is the ur-type for all types.

"The anyType represents an abstraction called the ur-type which is the base
type from which all simple and complex types are derived. An anyType type
does not constrain its content in any way. It is possible to use anyType
like other types, for example:


        <xsd:element name="anything" type="xsd:anyType" /> "

But Xerxes 1.3.0 tells me the base type "anyType" is unknown. Is the base
type "anyType" not supported by Xerces? Specifying "anyType" for complex
types works fine.

Thanks.
Holger



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