418db23fcf5883228b59fb8b008eb59ba37c5f6f
[metaproxy-moved-to-github.git] / xml / schema / filter_record_transform.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Metaproxy XML config file schemas
4   
5     Copyright (C) 2005-2011 Index Data.
6   
7     See the LICENSE file for details
8   
9   
10   The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
11   
12   The RelaxNG XML Syntax and XML Schema are generated using 'trang':
13   trang metaproxy.rnc metaproxy.rng 
14   trang metaproxy.rnc metaproxy.xsd 
15   
16   Config file validation is done using 'xmllint':
17   xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml 
18   xmllint -/-schema metaproxy.xsd config-bytarget.xml
19   
20   For information on RelaxNG see http://relaxng.org 
21   see also http://books.xmlschemata.org/relaxng/
22 -->
23 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:mp="http://indexdata.com/metaproxy" xmlns:y="http://indexdata.com/yaz">
24   <xs:import namespace="http://indexdata.com/metaproxy" schemaLocation="metaproxy.xsd"/>
25   <xs:import namespace="http://indexdata.com/yaz" schemaLocation="retrievalinfo.xsd"/>
26   <xs:element name="filter_record_transform" abstract="true">
27     <xs:complexType>
28       <xs:sequence>
29         <xs:element maxOccurs="unbounded" ref="y:retrieval"/>
30       </xs:sequence>
31       <xs:attribute name="version" use="required">
32         <xs:simpleType>
33           <xs:restriction base="xs:token">
34             <xs:enumeration value="1.0"/>
35           </xs:restriction>
36         </xs:simpleType>
37       </xs:attribute>
38     </xs:complexType>
39   </xs:element>
40   <xs:attributeGroup name="filter_record_transform">
41     <xs:attribute name="type" use="required">
42       <xs:simpleType>
43         <xs:restriction base="xs:token">
44           <xs:enumeration value="record_transform"/>
45         </xs:restriction>
46       </xs:simpleType>
47     </xs:attribute>
48     <xs:attribute name="id" type="xs:NCName"/>
49     <xs:attribute name="name" type="xs:NCName"/>
50   </xs:attributeGroup>
51 </xs:schema>