<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Problem with xs:extension</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi there,</FONT>
<BR><FONT SIZE=2 FACE="Arial">I have encountered a problem with the schema below. xsd doesn't accept a annotation within <xs:extension>. xsd emits the following errors:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">error: unexpected element 'annotation'</FONT>
<BR><FONT SIZE=2 FACE="Arial">error: expected 'attribute', 'anyAttribute', or 'attributeGroup' instead of 'sequence'</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">If I remove the annotation tag, everything works fine.</FONT>
<BR><FONT SIZE=2 FACE="Arial">According to w3.org an annotation is allowed within an extension (although it's marked optional). It would be great if you could help me here.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Many thanks in advance.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Cheers,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Thomas </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial"><?xml version="1.0"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><xs:schema xmlns:xs="<A HREF="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>" xmlns="<A HREF="http://www.mycompany.com/ODI">http://www.mycompany.com/ODI</A>" targetNamespace="<A HREF="http://www.mycompany.com/ODI">http://www.mycompany.com/ODI</A>" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.0" id="ODI"></FONT></P>
<P> <FONT SIZE=2 FACE="Arial"><xs:complexType name="View_Type"></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:attribute name="View_ID" type="xs:string" use="required"/></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></xs:complexType></FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial"><xs:complexType name="View_List_Type"></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:complexContent></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:extension base="View_Type"></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><!-- PROBLEM IS HERE ! IF ANNOTATION IS REMOVED EVERYTHING WORKS FINE. --></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:annotation><xs:documentation>static information of a view</xs:documentation></xs:annotation></FONT></P>
<P> <FONT SIZE=2 FACE="Arial"><xs:sequence></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:element name="Weig" type="xs:string"/></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:element name="List" type="xs:string"/></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></xs:sequence></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:attribute name="ThirdLevel_Classification_Code_Type" type="xs:string"></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:annotation></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><xs:documentation>code type</xs:documentation></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></xs:annotation></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></xs:attribute></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></xs:extension></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></xs:complexContent></FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial"></xs:complexType></FONT>
<BR><FONT SIZE=2 FACE="Arial"></xs:schema></FONT>
</P>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>