Example: <dataSpec> (datatype specification)

These search results reproduce every example of the use of <dataSpec> in the Guidelines, including all localised and translated versions. In some cases, the examples have been drawn from discussion of other elements in the Guidelines and illustrating the use of <dataSpec> is not the main focus of the passage in question. In other cases, examples may be direct translations of each other, and hence identical from the perspective of their encoding.

22 Documentation Elements


<dataSpec>

<dataSpec ident="teidata.pointer">
 <desc versionDate="2013-01-19"
  xml:lang="en">
defines the range of
     attribute values used to provide a single URI, absolute or relative,
     pointing to some other resource, either within the current document
     or elsewhere.</desc>
 <content>
  <dataRef name="anyURI"/>
 </content>
</dataSpec>

<dataRef>

<dataSpec ident="data.percentage">
 <desc>datatype used for attributes taking an integer value between 0 and 99</desc>
 <content>
  <dataRef name="nonNegativeInteger"
   restriction="[0-9][0-9]?"/>

 </content>
</dataSpec>

<dataFacet>

<dataSpec ident="data.percentage">
 <desc>datatype used for attributes taking an integer value between 0 and 99</desc>
 <content>
  <dataRef name="nonNegativeInteger">
   <dataFacet name="maxInclusive"
    value="99"/>

   <dataFacet name="minInclusivevalue="0"/>
  </dataRef>
 </content>
</dataSpec>