File: script.rng

package info (click to toggle)
jing-trang 20091111-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,312 kB
  • ctags: 10,531
  • sloc: java: 50,336; xml: 24,925; sh: 451; makefile: 50
file content (70 lines) | stat: -rw-r--r-- 1,414 bytes parent folder | download | duplicates (17)
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
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Script Module -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0">

<define name="script">
  <element name="script">
    <ref name="script.attlist"/>
    <text/>
  </element>
</define>

<define name="script.attlist">
  <optional>
    <attribute name="charset">
      <ref name="Charset.datatype"/>
    </attribute>
  </optional>
  <attribute name="type">
    <ref name="ContentType.datatype"/>
  </attribute>
  <optional>
    <attribute name="src">
      <ref name="URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="defer">
      <value>defer</value>
    </attribute>
  </optional>
  <optional>
    <attribute name="xml:space">
      <value>preserve</value>
    </attribute>
  </optional>
</define>

<define name="noscript">
  <element name="noscript">
    <ref name="noscript.attlist"/>
    <ref name="Block.model"/>
  </element>
</define>

<define name="noscript.attlist">
  <ref name="Common.attrib"/>
</define>

<define name="head.content" combine="interleave">
  <zeroOrMore>
    <ref name="script"/>
  </zeroOrMore>
</define>

<define name="Script.class">
  <choice>
    <ref name="noscript"/>
    <ref name="script"/>
  </choice>
</define>

<define name="Inline.class" combine="choice">
  <ref name="Script.class"/>
</define>

<define name="Block.class" combine="choice">
  <ref name="Script.class"/>
</define>

</grammar>