summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rng/xhtml-attribs.rng
blob: c2f8edfa754b805139d8d4af90744eeda9510b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <!-- Common Attributes Module -->
  <define name="id.attrib">
    <optional>
      <attribute name="id">
        <ref name="ID.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="class.attrib">
    <optional>
      <attribute name="class">
        <ref name="NMTOKENS.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="title.attrib">
    <optional>
      <attribute name="title">
        <ref name="Text.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="Core.attrib">
    <interleave>
      <ref name="id.attrib"/>
      <ref name="class.attrib"/>
      <ref name="title.attrib"/>
    </interleave>
  </define>
  <define name="lang.attrib">
    <optional>
      <attribute name="xml:lang">
        <ref name="LanguageCode.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="I18n.attrib">
    <ref name="lang.attrib"/>
  </define>
  <define name="Common.attrib">
    <interleave>
      <ref name="Core.attrib"/>
      <ref name="I18n.attrib"/>
    </interleave>
  </define>
  <define name="CommonIdRequired.attrib">
    <interleave>
      <attribute name="id">
        <ref name="ID.datatype"/>
      </attribute>
      <ref name="class.attrib"/>
      <ref name="title.attrib"/>
      <ref name="I18n.attrib"/>
    </interleave>
  </define>
</grammar>