File: relaxng.xml

package info (click to toggle)
https-everywhere 4.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,040 kB
  • ctags: 1,990
  • sloc: xml: 29,807; python: 1,839; sh: 322; makefile: 36
file content (61 lines) | stat: -rw-r--r-- 1,482 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
59
60
61
<element xmlns="http://relaxng.org/ns/structure/1.0" name="ruleset" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <attribute name="name" />

  <optional>
    <attribute name="match_rule" />
  </optional>

  <optional>
    <attribute name="default_off" />
  </optional>

  <optional>
    <attribute name="platform">
      <data type="string">
        <param name="pattern">(firefox|chromium|cacert|ipsca|mixedcontent)( (firefox|chromium|cacert|ipsca|mixedcontent))*</param>
      </data>
    </attribute>
  </optional>

  <interleave>

    <oneOrMore>
      <element name="target">
        <attribute name="host">
          <data type="string">
            <param name="pattern">(([A-Za-z0-9äö-]+|\*)\.)*([A-Za-z0-9äö-]+|\*)</param>
          </data>
        </attribute>
      </element>
    </oneOrMore>

    <zeroOrMore>
      <element name="exclusion">
        <attribute name="pattern" />
      </element>
    </zeroOrMore>

    <zeroOrMore>
      <element name="securecookie">
        <attribute name="host"/>
        <attribute name="name"/>
      </element>
    </zeroOrMore>

    <oneOrMore>
      <element name="rule">
        <attribute name="from"/>
        <attribute name="to">
          <data type="string">
            <param name="pattern">https?://.*</param>
          </data>
        </attribute>
        <optional>
            <attribute name="downgrade" />
        </optional>
      </element>
    </oneOrMore>

  </interleave>

</element>