File: xhtml-attribs.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 (58 lines) | stat: -rw-r--r-- 1,442 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
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>