summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rng/xhtml-bdo.rng
blob: 0ae52c536d7366ca59d3f44f723f186444adc6a1 (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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <!-- Bi-directional Module -->
  <define name="bdo">
    <element name="bdo">
      <interleave>
        <ref name="bdo.attlist"/>
        <ref name="Inline.model"/>
      </interleave>
    </element>
  </define>
  <define name="bdo.attlist">
    <interleave>
      <ref name="Core.attrib"/>
      <ref name="lang.attrib"/>
      <ref name="dir.attrib"/>
    </interleave>
  </define>
  <define name="dir.attrib">
    <attribute name="dir">
      <choice>
        <value>ltr</value>
        <value>rtl</value>
      </choice>
    </attribute>
  </define>
  <define name="I18n.attrib" combine="interleave">
    <optional>
      <ref name="dir.attrib"/>
    </optional>
  </define>
  <define name="Inline.class" combine="interleave">
    <zeroOrMore>
      <ref name="bdo"/>
    </zeroOrMore>
  </define>
</grammar>