TEIC / TEI

The Text Encoding Initiative Guidelines
https://www.tei-c.org
Other
269 stars 88 forks source link

teidata.probability is not constrained, but should be #2518

Closed sydb closed 3 months ago

sydb commented 5 months ago

The <remarks> for teidata.probability say “Probability is expressed as a real number between 0 and 1; …”. But the datatype is defined as just xsd:double. Thus values like "201182122", "3.1416", and even "-40.0" are valid. I think the definition

  <content>
      <dataRef name="double"/>
   </content>

should instead be

    <content>
      <dataRef name="double">
        <dataFacet name="minInclusive" value="0"/>
        <dataFacet name="maxInclusive" value="1"/>
      </dataRef>
    </content>