forked from EFForg/https-everywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelaxng.xml
86 lines (75 loc) · 2.5 KB
/
relaxng.xml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<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>
<zeroOrMore>
<element name="test">
<attribute name="url">
<data type="string">
<param name="pattern">http[^\\]+</param>
</data>
</attribute>
</element>
</zeroOrMore>
<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"/>
<data type="string">
<param name="pattern">[^/]*</param>
</data>
<attribute name="name"/>
</element>
</zeroOrMore>
<oneOrMore>
<element name="rule">
<attribute name="from">
<data type="string">
<!-- The from attribute of a rule must start with a caret.
It also must contain two slashes (separating the protocol from
the hostname), and at least one other slash (terminating the
hostname, and possible beginning a path). Alternatively it can be
the literal string "^http:". -->
<param name="pattern">(\^.*//.*/.*|\^http:)</param>
</data>
</attribute>
<attribute name="to">
<data type="string">
<!-- The to attribute of a rule must not contain spaces or
backslashes. It also must contain at least one slash after the
hostname. Alternatively it can be the literal string "https:"-->
<param name="pattern">(https?://[^ \\]*/[^ \\]*|https:)</param>
</data>
</attribute>
<optional>
<attribute name="downgrade" />
</optional>
</element>
</oneOrMore>
</interleave>
</element>