- From: Faiz A Currim <fcurrim@bpa.arizona.edu>
- Date: Tue, 23 Apr 2002 20:09:17 -0400 (EDT)
- To: xmlschema-dev@w3.org
Is it possible to define a new construct (i.e. like "element",
"attribute" ...) using XSchema that extends one of the old constructs?
>From what i've been able to determine, this is done in the XSchema
definition itself in the following way:
<xs:complexType name="element" abstract="true" mixed="false">
<xs:complexContent>
<xs:extension base="xs:annotated">
<xs:sequence>
...
so it would seem that "element" extends "annotated". However if i try to
extend "element" in an external .xsd file - using a similar style as
above:
<xs:complexType name="myElement" abstract="true" mixed="false">
<xs:complexContent>
<xs:extension base="xs:element">
<xs:sequence>
...
the validator always stops me with an "xs:element is an invalid value for
the extension base".
your help is appreciated.
faiz
Received on Wednesday, 24 April 2002 04:08:30 UTC