summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rng/xhtml-link.rng
blob: 309e66f38cbff842763ee38c94834820769497ef (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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <!-- Link Module -->
  <define name="link">
    <element name="link">
      <ref name="link.attlist"/>
    </element>
  </define>
  <define name="link.attlist">
    <ref name="Common.attrib"/>
    <optional>
      <attribute name="charset">
        <ref name="Charset.datatype"/>
      </attribute>
    </optional>
    <optional>
      <attribute name="href">
        <ref name="URI.datatype"/>
      </attribute>
    </optional>
    <optional>
      <attribute name="hreflang">
        <ref name="LanguageCode.datatype"/>
      </attribute>
    </optional>
    <optional>
      <attribute name="type">
        <ref name="ContentType.datatype"/>
      </attribute>
    </optional>
    <optional>
      <attribute name="rel">
        <ref name="LinkTypes.datatype"/>
      </attribute>
    </optional>
    <optional>
      <attribute name="rev">
        <ref name="LinkTypes.datatype"/>
      </attribute>
    </optional>
    <optional>
      <attribute name="media">
        <ref name="MediaDesc.datatype"/>
      </attribute>
    </optional>
  </define>
  <define name="head.content" combine="interleave">
    <zeroOrMore>
      <ref name="link"/>
    </zeroOrMore>
  </define>
</grammar>