OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [NEW ISSUE] Current Schema for Properties does not support value attribute- [ASM50027]


After we updated to sca-core-1.1-cd04.xsd, some schema validation errors related to properties started to happen as the one below

XMLSchema validation error occured in: TestComposite50 ..... 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 which is not defined.

  <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>


The value attribute should be defined.



- Luciano

Luciano Resende
Open Source SOA -
Apache Tuscany
4400 N 1st St, San Jose - CA
notes:
Luciano Resende/Westford/IBM
internet IBM:
luciano_resende@us.ibm.com
internet ASF:
lresende@apache.org
Personal blog @ developerWorks : link
Apache Tuscany blog:
link

Great things are not done by impulse but by a series of small things brought together
- Vincent Van Gogh




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]