File: xhtml-bdo.rng

package info (click to toggle)
texlive-extra 2012.20120611-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,508,552 kB
  • sloc: perl: 75,280; makefile: 12,192; sh: 9,570; python: 6,296; csh: 2,987; java: 1,367; ansic: 1,032; xml: 896; lisp: 541; lex: 358; ruby: 150; tcl: 142; sed: 28; pascal: 18; awk: 10
file content (37 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (2)
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>