[xsd-users] C++/Parser errors from GML schemas

Boris Kolpackov boris at codesynthesis.com
Sun Oct 23 05:33:19 EDT 2005


James,

Boris Kolpackov <boris at codesynthesis.com> writes:

> <complexType name="OperationMethodBaseType" abstract="true">
>   <complexContent>
>     <restriction base="gml:DefinitionType">
>       <sequence>
> 	<element ref="gml:metaDataProperty" minOccurs="0" maxOccurs="unbounded"/>
> 	<element ref="gml:methodName"/>
>       </sequence>
>       <attribute ref="gml:id" use="required"/>
>     </restriction>
>   </complexContent>
> </complexType>
>
> Now look at the base type definition (dictionary.xsd:35):
>
> <complexType name="DefinitionType">
>   <complexContent>
>     <restriction base="gml:AbstractGMLType">
>       <sequence>
> 	<element ref="gml:metaDataProperty" minOccurs="0" maxOccurs="unbounded"/>
> 	<element ref="gml:description" minOccurs="0"/>
> 	<element ref="gml:name" maxOccurs="unbounded"/>
>       </sequence>
>       <attribute ref="gml:id" use="required"/>
>     </restriction>
>   </complexContent>
> </complexType>
>
> There are two problems in this case:
>
>  1. OperationMethodBaseType should explicitly declare each element found
>     in DefinitionType (name and description are missing).

Just one correction: it is ok to omit description in OperationMethodBaseType
since it is minOccurs="0".

hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20051023/63e1f760/attachment.pgp


More information about the xsd-users mailing list