Split config schemas to separate files
[metaproxy-moved-to-github.git] / xml / schema / filter_cgi.rnc
diff --git a/xml/schema/filter_cgi.rnc b/xml/schema/filter_cgi.rnc
new file mode 100644 (file)
index 0000000..259c416
--- /dev/null
@@ -0,0 +1,30 @@
+# Metaproxy XML config file schemas
+# 
+#   Copyright (C) 2005-2011 Index Data.
+# 
+#   See the LICENSE file for details
+# 
+# 
+# The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
+# 
+# The RelaxNG XML Syntax and XML Schema are generated using 'trang':
+# trang metaproxy.rnc metaproxy.rng 
+# trang metaproxy.rnc metaproxy.xsd 
+# 
+# Config file validation is done using 'xmllint':
+# xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml 
+# xmllint -/-schema metaproxy.xsd config-bytarget.xml
+# 
+# For information on RelaxNG see http://relaxng.org 
+# see also http://books.xmlschemata.org/relaxng/
+
+namespace mp = "http://indexdata.com/metaproxy"
+
+filter_cgi =
+  attribute type { "cgi" },
+  element mp:map {
+    attribute path { xsd:string },
+    attribute exec { xsd:string }
+  }*
+
\ No newline at end of file