Fix Metaproxy stops logging after check config failed MP-590
[metaproxy-moved-to-github.git] / xml / schema / filter_http_rewrite.rnc
1 # Metaproxy XML config file schema
2
3 namespace mp = "http://indexdata.com/metaproxy"
4
5 rewrite = element mp:rewrite {
6   attribute from { xsd:string },
7   attribute to { xsd:string }
8 }
9
10 rule = element mp:rule {
11   attribute name { xsd:string },
12   rewrite*
13 }
14
15 within = element mp:within {
16   attribute tag { xsd:string }?,
17   attribute attr { xsd:string }?,
18   attribute type { xsd:string }?,
19   attribute header { xsd:string }?,
20   attribute reqline { xsd:string }?,
21   attribute rule { xsd:string }
22 }
23
24 content = element mp:content {
25   attribute type { xsd:string },
26   attribute mime { xsd:string }?,
27   within*
28 }
29
30 section = (rule | content)*
31
32 filter_http_rewrite =
33   attribute type { "http_rewrite" },
34   attribute id { xsd:NCName }?,
35   attribute name { xsd:NCName }?,
36   element mp:request {
37     attribute verbose { xsd:string },
38     section
39   }?,
40   element mp:response {
41     attribute verbose { xsd:string },
42     section
43   }?
44