You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "Matt B. Sanchez" <Ma...@webifysolutions.com> on 2003/11/12 20:24:43 UTC

Schema compile error w/ UDDI v3 schemas

I am trying to compile the UDDI v3 schemas using XMLBeans v1.  The compiler complains about this schema file: http://uddi.org/schema/uddi_v3replication.xsd. 

The error is: "src/schema/uddi_v3replication.xsd:0: error: Attribute not allowed: final in element complexType@http://www.w3.org/2001/XMLSchema".

Does anyone know what this means?

Thanks,
Matt

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: Schema compile error w/ UDDI v3 schemas

Posted by David Bau <da...@bea.com>.
Matt,

Yes, it means what it sounds like - the official schema for schema (yes, the
schema spec includes a schema that describes the proper format for schema
files) says that the "final" attribute is not allowed where it is appearing
near line 43 (and in 16 other locations) in the uddi_v3replication.xsd file.

Details - the "final" attribute which is not allowed is on a local
complexType declaration (i.e., one that is nested inside an element
declaration) in this case:

<element name="changeRecord">
    <complexType final="restriction">
      ....

The schema spec never says explicitly _why_ it prohibits the "final"
attribute at this location (but it does explicitly prohibit it - see the
definition of "localComplexType" inside the schema for schema at
http://www.w3.org/TR/xmlschema-1/").  My guess is the reason for the
prohibition is probably because it "final" is unnecessary since it is
syntactically impossible to define a complex type that inhertis from a local
complex type definition that is nested inside an element anyway.  Therefore
it is meaningless to assert that the type declared there is "final" - it is
_always_ final.

Before XMLBeans compiles a schema, it always validates it.

The cleanest solution for fixing this problem is probably just to fix the
error in the schema you've got.  If you can't change the official UDDI
schema, you can certainly modify a local copy.  Is that possible for you?

David


----- Original Message ----- 
From: "Matt B. Sanchez" <Ma...@webifysolutions.com>
To: <xm...@xml.apache.org>
Sent: Wednesday, November 12, 2003 2:24 PM
Subject: [xmlbeans-dev] Schema compile error w/ UDDI v3 schemas


I am trying to compile the UDDI v3 schemas using XMLBeans v1.  The compiler
complains about this schema file:
http://uddi.org/schema/uddi_v3replication.xsd.

The error is: "src/schema/uddi_v3replication.xsd:0: error: Attribute not
allowed: final in element complexType@http://www.w3.org/2001/XMLSchema".

Does anyone know what this means?

Thanks,
Matt

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: Schema compile error w/ UDDI v3 schemas

Posted by David Bau <da...@bea.com>.
Matt,

Yes, it means what it sounds like - the official schema for schema (yes, the
schema spec includes a schema that describes the proper format for schema
files) says that the "final" attribute is not allowed where it is appearing
near line 43 (and in 16 other locations) in the uddi_v3replication.xsd file.

Details - the "final" attribute which is not allowed is on a local
complexType declaration (i.e., one that is nested inside an element
declaration) in this case:

<element name="changeRecord">
    <complexType final="restriction">
      ....

The schema spec never says explicitly _why_ it prohibits the "final"
attribute at this location (but it does explicitly prohibit it - see the
definition of "localComplexType" inside the schema for schema at
http://www.w3.org/TR/xmlschema-1/").  My guess is the reason for the
prohibition is probably because it "final" is unnecessary since it is
syntactically impossible to define a complex type that inhertis from a local
complex type definition that is nested inside an element anyway.  Therefore
it is meaningless to assert that the type declared there is "final" - it is
_always_ final.

Before XMLBeans compiles a schema, it always validates it.

The cleanest solution for fixing this problem is probably just to fix the
error in the schema you've got.  If you can't change the official UDDI
schema, you can certainly modify a local copy.  Is that possible for you?

David


----- Original Message ----- 
From: "Matt B. Sanchez" <Ma...@webifysolutions.com>
To: <xm...@xml.apache.org>
Sent: Wednesday, November 12, 2003 2:24 PM
Subject: [xmlbeans-dev] Schema compile error w/ UDDI v3 schemas


I am trying to compile the UDDI v3 schemas using XMLBeans v1.  The compiler
complains about this schema file:
http://uddi.org/schema/uddi_v3replication.xsd.

The error is: "src/schema/uddi_v3replication.xsd:0: error: Attribute not
allowed: final in element complexType@http://www.w3.org/2001/XMLSchema".

Does anyone know what this means?

Thanks,
Matt

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/