Hi!

I try to compile a subset of the gml.xsd (OGC). There are these two types
derived from each other:

   <complexType name="CodeType">
    <simpleContent>
      <extension base="xsd:string">
        <attribute name="codeSpace" type="anyURI" use="optional"/>
      </extension>
    </simpleContent>
   </complexType>


   <complexType name="SimpleNameType">
    <simpleContent>
     <restriction base="gml:CodeType">
       <attribute name="codeSpace" type="anyURI" use="prohibited"/>
     </restriction>
    </simpleContent>
   </complexType>

When I use scomp to generate the code and after that the javac to compile the
generated code there is this error:

net.opengis.gml.impl.SimpleNameTypeImpl is not abstract and does not override
  abstract method unsetCodeSpace() in net.opengis.gml.CodeType
public class SimpleNameTypeImpl extends
org.apache.xmlbeans.impl.values.JavaStringHolderEx implements
net.opengis.gml.SimpleNameType

The interface SimpleNameType correctly implements the interface CodeType. But
the SimpleNameTypeImpl does not implement the methods to access the attribute
codespace (also correct, because it is "prohibited" there).

Is there a solution for this conflict? Is the gml schema wrong? What can I do to
solve this problem?
Thank you for reading my probs! Best regards Ralf



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to