RuleML / issues-ruleml

A repository solely for RuleML issues. No schemas or documents should be committed here.
3 stars 3 forks source link

Remove xml:base except optionally on Data element #60

Closed greenTara closed 8 years ago

greenTara commented 8 years ago

When we made the change to only CURIEs and absolute IRIs (in key, keyref, iri, type, style, material, ...), not allowing relative IRI references in these attributes, I forgot to modify the occurrence of xml:base attributes in the schema. It is no longer needed in any element except Data, where it can only be used to resolve relative IRI references given with xsi:type="xsd:anyURI".

Since xml:base is no longer needed to resolve the relative IRI references of any attribute values, it's use can be restricted to the Data element. It is actually only needed when the datatype is explicitly declared to be xs:anyURI (otherwise what might look like a relative IRI references is actually just a string). Further, it cannot be used together with the simple type declaration (xsi:type="xs:anyURI") because this type does not allow attributes. Therefore the minimal usage example looks like:

<ruleml:Data xml:base="http://example.org" xsi:type="ruleml:anyURI">#fragment</ruleml:Data>