<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright TEI Consortium. 
Dual-licensed under CC-by and BSD2 licences 
See the file COPYING.txt for details
$Date$
$Id$
-->
<?xml-model href="http://tei.oucs.ox.ac.uk/jenkins/job/TEIP5/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>

<elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0"
  module="tagdocs" ident="dataNode">
   <desc versionDate="2014-07-01" xml:lang="en">defines possible
   values for a data node, usually as part of an attribute's datatype</desc>
   <classes>     
     <memberOf key="att.global"/>
     <memberOf key="model.contentPart"/>
</classes>
     <content/>

  <attList>
    <attDef ident="name">
      <desc versionDate="2012-12-04" xml:lang="en">supplies the name of a predefined datatype in the datatype library specified by the
          <att>source</att> attribute</desc>
      <datatype><rng:data type="name" xmlns:rng="http://relaxng.org/ns/structure/1.0"/></datatype>
    </attDef>
    <attDef ident="source">
      <desc versionDate="2012-12-04" xml:lang="en">points to the datatype library in which the name specified by the <att>name</att> attribute is defined
        </desc>
      <datatype><rng:data type="anyURI" xmlns:rng="http://relaxng.org/ns/structure/1.0"/> </datatype>
        <defaultVal>http://www.w3.org/2001/XMLSchema-datatypes</defaultVal>
      <remarks  versionDate="2012-12-04" xml:lang="en"><p>The default source is the list of datatypes provided by <ref target="#XSD2">XML Schema schema for XML Schemas: Part 2: Datatypes</ref> </p></remarks>
    </attDef>
    <attDef ident="match">
      <desc versionDate="2012-12-04" xml:lang="en">supplies a string representing a regular expression providing additional constraints 
        on the strings used to represent values conforming to this datatype</desc>
    <datatype><rng:data type="string" xmlns:rng="http://relaxng.org/ns/structure/1.0"/> </datatype>
    </attDef>
  </attList>
  <exemplum xml:lang="und">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
      <dataNode name="anyURI"/>
         </egXML>
  </exemplum>
  <exemplum xml:lang="und">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
      <dataNode name="nonNegativeInteger" match="[0-9][0-9]?"/>
         </egXML>
  </exemplum>

 <listRef>
    <ptr target="#TD"/>
  </listRef>
</elementSpec>
