1 <?xml version="1.0" encoding="UTF-8"?>
3 Metaproxy XML config file schemas
5 Copyright (c) 2005-2008 Index Data.
7 See the LICENSE file for details
10 The RelaxNG Compact Syntax file 'retrievalinfo.rnc' is the master copy.
12 The RelaxNG XML Syntax and XML Schema are generated using 'trang':
13 trang retrievalinfo.rnc retrievalinfo.rng
14 trang retrievalinfo.rnc retrievalinfo.xsd
16 Config file validation is done using 'xmllint':
17 xmllint -/-relaxng retrievalinfo.rng retrievalinfo.xml
18 xmllint -/-schema retrievalinfo.xsd retirevalinfo.xml
20 For information on RelaxNG see http://relaxng.org
21 see also http://books.xmlschemata.org/relaxng/
23 <grammar xmlns:y="http://indexdata.com/yaz" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
25 need to be in different namespace then metaproxy, otherwise
26 xslt element definition clashes in XML Schema files
27 namespace y = "http://indexdata.com/metaproxy"
29 <start combine="choice">
30 <ref name="retrievalinfo"/>
33 <element name="y:marc">
34 <attribute name="inputformat">
37 <attribute name="outputformat">
40 <attribute name="inputcharset">
46 <element name="y:xslt">
47 <attribute name="stylesheet">
52 <define name="retrievalinfo">
53 <element name="y:retrievalinfo">
54 <attribute name="version">
58 <element name="y:retrieval">
59 <attribute name="syntax">
63 <attribute name="name">
68 <attribute name="identifier">
74 attribute backendsyntax { xsd:string }?,
75 attribute backendname { xsd:string }?,
77 <element name="y:backend">
78 <attribute name="syntax">
82 <attribute name="name">