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 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://indexdata.com/yaz" xmlns:mp="http://indexdata.com/metaproxy" xmlns:y="http://indexdata.com/yaz">
24 <xs:import namespace="http://indexdata.com/metaproxy" schemaLocation="metaproxy.xsd"/>
26 need to be in different namespace then metaproxy, otherwise
27 xslt element definition clashes in XML Schema files
28 namespace y = "http://indexdata.com/metaproxy"
30 <xs:element name="marc">
32 <xs:attribute name="inputformat" use="required" type="xs:string"/>
33 <xs:attribute name="outputformat" use="required" type="xs:string"/>
34 <xs:attribute name="inputcharset" use="required" type="xs:string"/>
37 <xs:element name="xslt">
39 <xs:attribute name="stylesheet" use="required" type="xs:string"/>
42 <xs:element name="retrievalinfo" substitutionGroup="mp:filter_record_transform"/>
43 <xs:element name="retrieval">
46 <xs:element minOccurs="0" ref="y:backend"/>
48 <xs:attribute name="syntax" use="required" type="xs:string"/>
49 <xs:attribute name="name" type="xs:string"/>
50 <xs:attribute name="identifier" type="xs:string"/>
53 <xs:element name="backend">
55 <xs:choice minOccurs="0" maxOccurs="unbounded">
56 <xs:element ref="y:marc"/>
57 <xs:element ref="y:xslt"/>
59 <xs:attribute name="syntax" use="required" type="xs:string"/>
60 <xs:attribute name="name" type="xs:string"/>