RuleML / reaction-ruleml

Reaction RuleML
http://reaction.ruleml.org
8 stars 4 forks source link

Attribute @material is allowed CURIE or IRI content #82

Closed greenTara closed 9 years ago

greenTara commented 9 years ago

In attribute_module.xsd, change the definition of material.attrib to

    <xs:attributeGroup name="material.attrib">
        <xs:attribute name="material" type="material.datatype" use="optional"/>
    </xs:attributeGroup>

    <xs:simpleType name="material.datatype">
        <xs:union memberTypes="termOrCurieOrAbsIRI.datatype vocab-material.datatype" />
    </xs:simpleType> 
    <xs:simpleType name="vocab-material.datatype">
        <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="yes"/>
            <xs:enumeration value="no"/>
        </xs:restriction>
    </xs:simpleType>