tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luciano Resende <luckbr1...@gmail.com>
Subject [2.x] Current Schema for Properties does not support value attribute - [ASM50027]
Date Thu, 06 Aug 2009 23:05:10 GMT
After we updated to sca-core-1.1-cd04.xsd, some schema validation
errors related to properties started to happen as the one below

SEVERE: XMLSchema validation error occured in:
TestComposite50.composite ,line = 26, column = 5, Message =
cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
element 'property'.
org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
error occured in: TestComposite50.composite ,line = 25, column = 5,
Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
appear in element 'property'.java.lang.IllegalStateException:
org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
error occured in: TestComposite50.composite ,line = 25, column = 5,
Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
appear in element 'property'.

The root cause of the issue seems to be the change from  <anyAttribute
namespace="##any" processContents="lax"/> to <anyAttribute
namespace="##other" processContents="lax"/> on the property
complexType definition (see below). With this change, only attributes
from another namespace is allowed and thus the validation complaints
about the value attribute.

   <complexType name="Property" mixed="true">
      <complexContent mixed="true">
         <extension base="sca:SCAPropertyBase">
            <attribute name="name" type="NCName" use="required"/>
            <attribute name="type" type="QName" use="optional"/>
            <attribute name="element" type="QName" use="optional"/>
            <attribute name="many" type="boolean" use="optional"
                       default="false"/>
            <attribute name="mustSupply" type="boolean" use="optional"
                       default="false"/>
            <anyAttribute namespace="##other" processContents="lax"/>
         </extension>
         <!-- extension defines the place to hold default value -->
         <!-- an extension point ; attribute-based only -->
      </complexContent>
   </complexType>


Mike, do you want me to create a new issue for the Assembly spec ?

-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Mime
View raw message