fixing relaxng-to-xmlschema translation error by new namespace for retirevalinfo
[metaproxy-moved-to-github.git] / xml / schema / retrievalinfo.rnc
1 # Metaproxy XML config file schemas
2 #  $Id: retrievalinfo.rnc,v 1.3 2006-11-30 23:10:26 marc Exp $
3
4 #   Copyright (c) 2005-2006, Index Data.
5
6 #   See the LICENSE file for details
7
8
9 # The RelaxNG Compact Syntax file 'retrievalinfo.rnc' is the master copy.
10
11 # The RelaxNG XML Syntax and XML Schema are generated using 'trang':
12 # trang retrievalinfo.rnc retrievalinfo.rng 
13 # trang retrievalinfo.rnc retrievalinfo.xsd 
14
15 # Config file validation is done using 'xmllint':
16 # xmllint -/-relaxng retrievalinfo.rng retrievalinfo.xml 
17 # xmllint -/-schema retrievalinfo.xsd retirevalinfo.xml
18
19 # For information on RelaxNG see http://relaxng.org 
20 # see also http://books.xmlschemata.org/relaxng/
21
22 namespace y = "http://indexdata.com/yaz"
23 # need to be in different namespace then metaproxy, otherwise 
24 # xslt element definition clashes in XML Schema files
25 # namespace y = "http://indexdata.com/metaproxy"
26
27 start |= retrievalinfo
28
29 retrievalinfo = 
30   element y:retrievalinfo { 
31     attribute version { "1.0" },
32     element y:retrieval {
33       attribute syntax { xsd:string },
34       attribute name { xsd:string }?,
35       attribute identifier { xsd:string }?,
36       attribute backendsyntax { xsd:string }?,
37       attribute backendname { xsd:string }?,
38       element y:convert {
39         element y:marc {
40           attribute inputformat { xsd:string },
41           attribute outputformat { xsd:string },
42           attribute inputcharset { xsd:string }
43         },
44         element y:xslt {
45           attribute stylesheet { xsd:string }
46         }?
47       }?
48     }+
49   }