Re: Can local element be abstract?

> "Aung Aung" wrote...
> 
>Hello,
>

Hi Aung,

>
>
>Question: Can one declared a local element as abstract or is it
>prohibited??
>

No, one cannot declare a local element as abstract. It is prohibited.

>
>
>In the structures spec, I cannot find any description prohibiting the
>declaration of abstract local element under section 3.3 Element
>Declarations.
>

See point 2 of clause 3.3.4.
http://www.w3.org/TR/xmlschema-1/#section-Element-Declaration-Validation-Rules

Hope that clarifies.

Cheers,
Rahul.

> 
>
>However, in the Schema for Schema at the end under complexType
>name="localElement", it is defined that 
>
><xs:complexType name="localElement">
>  <xs:complexContent>
>   ...
>    <xs:attribute name="abstract" use="prohibited"/>
>   ...
></xs:complexType>
>
>
>Thanks,
>
>-Aung

Received on Friday, 18 January 2002 04:10:44 UTC