PROV-ISSUE-481: PROV-XSD Entity complexType does not support prov:value child element [XML Serialization]

PROV-ISSUE-481: PROV-XSD Entity complexType does not support prov:value child element [XML Serialization]

http://www.w3.org/2011/prov/track/issues/481

Raised by: Stephan Zednik
On product: XML Serialization

The Entity complexType does not support a prov:value child element.

  <xs:element name="entity" type="prov:Entity"/>
  <xs:complexType name="Entity">
    <xs:sequence>
      <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/> 
      <xs:element ref="prov:type"  minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="prov:location"  minOccurs="0" maxOccurs="unbounded"/>
 
      <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute ref="prov:id"/>
  </xs:complexType>  

should be updated to

  <xs:element name="entity" type="prov:Entity"/>
  <xs:complexType name="Entity">
    <xs:sequence>
      <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/> 
      <xs:element ref="prov:type"  minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="prov:location"  minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="prov:value" minOccurs="0" maxOccurs="1"/>

      <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute ref="prov:id"/>
  </xs:complexType>  

Received on Monday, 20 August 2012 06:02:13 UTC