<attDef>

<attDef> 1つの属性の定義を示す. 22.4.5 Attribute List Specification
モジュール tagdocs — 22 Documentation Elements
グローバル属性の他 att.identified (@ident, @predeclare, @module, @mode)
usage 属性または要素の選択性を示す.
状態 任意
正当な値:
req
(必須.)
mwa
(可能であれば,必須.)
rec
(推奨.)
rwa
(可能であれば,推奨.)
opt
(選択的.) [初期値]
ns (namespace) 当該属性が属する名前空間を示す.
状態 任意
データ型

<rng:ref name="data.namespace"/>
data.namespace
当該モジュールを使用するもの
下位
宣言

<rng:element name="attDef">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.identified.attributes"/>
 <rng:optional>
  <rng:attribute name="usage" a:defaultValue="opt">
   <rng:choice>
    <rng:value>req</rng:value>
    <rng:value>mwa</rng:value>
    <rng:value>rec</rng:value>
    <rng:value>rwa</rng:value>
    <rng:value>opt</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="ns"
    a:defaultValue="http://www.tei-c.org/ns/1.0">

   <rng:ref name="data.namespace"/>
  </rng:attribute>
 </rng:optional>
 <rng:group>
  <rng:zeroOrMore>
   <rng:ref name="model.glossLike"/>
  </rng:zeroOrMore>
  <rng:optional>
   <rng:ref name="datatype"/>
  </rng:optional>
  <rng:zeroOrMore>
   <rng:ref name="constraintSpec"/>
  </rng:zeroOrMore>
  <rng:optional>
   <rng:ref name="defaultVal"/>
  </rng:optional>
  <rng:optional>
   <rng:choice>
    <rng:ref name="valList"/>
    <rng:oneOrMore>
     <rng:ref name="valDesc"/>
    </rng:oneOrMore>
   </rng:choice>
  </rng:optional>
  <rng:zeroOrMore>
   <rng:ref name="exemplum"/>
  </rng:zeroOrMore>
  <rng:zeroOrMore>
   <rng:ref name="remarks"/>
  </rng:zeroOrMore>
 </rng:group>
</rng:element>
element attDef
{
   att.global.attributes,
   att.identified.attributes,
   attribute usage { "req" | "mwa" | "rec" | "rwa" | "opt" }?,
   attribute ns { data.namespace }?,
   (
      model.glossLike*,
      datatype?,
      constraintSpec*,
      defaultVal?,
      ( valList | valDesc+ )?,
      exemplum*,
      remarks*
   )
}
<attDef usage="rec" ident="type">
 <desc>specifies a name conventionally used for this level of subdivision, e.g.
 <val>act</val>, <val>volume</val>, <val>book</val>, <val>section</val>, <val>canto</val>,
   etc.</desc>
</attDef>