<?xml version="1.0" encoding="UTF-8"?>
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/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:sch="http://purl.oclc.org/dsdl/schematron" module="tagdocs" xml:id="gi-dataFacet" ident="dataFacet">
  <desc versionDate="2016-11-21" xml:lang="en">Restricts the value of the strings used to represent values of a datatype, 
    according to <ref target="#XSD2">XML Schema Part 2: Datatypes Second Edition</ref>.</desc>
  <desc versionDate="2024-09-02" xml:lang="ja"><ref target="#XSD2">XML Schemas: Part 2: Datatypes</ref>に従って、データ型の値を表すために使用される文字列の値を制限する。</desc>
  <classes>
    <memberOf key="att.global"/>
    </classes>
  <content><empty/></content>
  <attList>
      <attDef ident="name" usage="req">
        <desc versionDate="2016-11-21" xml:lang="en">the name of the facet.</desc>
        <desc versionDate="2024-09-02" xml:lang="ja">ファセットの名前</desc>
        <datatype><dataRef key="teidata.word"/></datatype>
        <valList type="closed">
          <valItem ident="length"/>
          <valItem ident="minLength"/>
          <valItem ident="maxLength"/>
          <valItem ident="pattern"/>
          <valItem ident="enumeration"/>
          <valItem ident="whiteSpace"/>
          <valItem ident="maxInclusive"/>
          <valItem ident="minInclusive"/>
          <valItem ident="maxExclusive"/>
          <valItem ident="minExclusive"/>
          <valItem ident="totalDigits"/>
          <valItem ident="fractionDigits"/> 
        </valList>
      </attDef>
      <attDef ident="value" usage="req">
        <desc versionDate="2016-11-21" xml:lang="en">the facet value.</desc>
        <desc versionDate="2024-09-02" xml:lang="ja">ファセット値</desc>
        <datatype><dataRef name="string"/></datatype>
      </attDef>
  </attList>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-dataFacet-egXML-fb" source="#UND">
      <datatype>
        <dataRef name="decimal">
          <dataFacet name="maxInclusive" value="360.0"/>
          <dataFacet name="minInclusive" value="-360.0"/>
        </dataRef>
      </datatype>
    </egXML>
  </exemplum>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-dataFacet-egXML-oc">
      <dataSpec ident="data.integerExample">
        <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="minInclusive" value="0"/>
          </dataRef>
        </content>    
      </dataSpec>
    </egXML>
  </exemplum>
  <remarks versionDate="2016-11-21" xml:lang="en">
    <p>This element is only allowed when the parent <gi>dataRef</gi> refers with
        <att>name</att> to a datatype from the specification <ref target="#XSD2">XML Schema Part 2: Datatypes Second Edition</ref>. 
    </p>
  </remarks>
  <remarks versionDate="2024-09-02" xml:lang="ja"><p>この要素は、親<gi>dataRef</gi>が<att>name</att>によって、<ref target="#XSD2">XML Schemas: Part 2: Datatypes</ref>の仕様書からデータ型を参照する場合にのみ許される。</p></remarks>
  <listRef>
    <ptr target="#TD-datatypes"/>
  </listRef>
</elementSpec>
