<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:inm="http://www.inmagic.com/webpublisher/query" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<xs:element name="Query">
		<xs:annotation>
			<xs:documentation>Root element.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:all>
				<xs:element ref="AC" minOccurs="1" maxOccurs="1"/>
				<xs:element ref="TN" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="BU" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="CS" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="DF" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="DL" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="DT" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="ES" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="ID" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="MF" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="MQ" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="MR" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="NP" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="QY" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="RF" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="RL" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="RN" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="SE" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="SN" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="TI" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="TR" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="TX" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="XC" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="XE" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="XM" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="XP" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="XS" minOccurs="0" maxOccurs="1"/>
				<xs:element name="MatchFields" type="MatchFieldsType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="KeyFields" type="KeyFieldsType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="Recordset" type="RecordsetType" minOccurs="0" maxOccurs="1"/>
			</xs:all>
			<xs:attribute name="detail" type="detailType" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="AC">
		<xs:annotation>
			<xs:documentation>Specifies the action the program will take.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="validation" type="validationType" use="optional"/>
					<xs:attribute name="trim" type="trimType" use="optional"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:simpleType name="detailType">
		<xs:annotation>
			<xs:documentation>Specifies Detail attribute value: qy (default) or full or off.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="qy"/>
			<xs:enumeration value="full"/>
			<xs:enumeration value="off"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="trimType">
		<xs:annotation>
			<xs:documentation>Specifies trim attribute value: y or n (default).</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="y"/>
			<xs:enumeration value="n"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="validationType">
		<xs:annotation>
			<xs:documentation>Specifies validation attribute value: update or override or none (default).</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="none"/>
			<xs:enumeration value="update"/>
			<xs:enumeration value="override"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="TN" type="xs:string">
		<xs:annotation>
			<xs:documentation>Specifies textbase name.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="BU" type="xs:anyURI">
		<xs:annotation>
			<xs:documentation>Specifies the base URL. Points to page used to generate search.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="CS" type="xs:boolean">
		<xs:annotation>
			<xs:documentation>Specifies whether report/display pages use CSS.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="DF">
		<xs:annotation>
			<xs:documentation>Specifies the expanded display form name.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:maxLength value="20"/>
				<xs:minLength value="1"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="DL" type="xs:boolean">
		<xs:annotation>
			<xs:documentation>Specifies whether to show the form list on the expanded display.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="DT">
		<xs:annotation>
			<xs:documentation>Specifies the document type used in the content setting for HTTP header information passed to browser.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="1"/>
				<xs:maxLength value="50"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="ES" type="xs:boolean">
		<xs:annotation>
			<xs:documentation>Specifies whether to open the expanded display form in a new browser window.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="ID">
		<xs:annotation>
			<xs:documentation>Specifies the password you want to use.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="0"/>
				<xs:maxLength value="15"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="MF" type="xs:string">
		<xs:annotation>
			<xs:documentation>Specifies the message file name for message translation.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="MQ">
		<xs:annotation>
			<xs:documentation>Specifies name of query screen from which to read search textbase information for WebPublisher Multiple Texbase Query.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="1"/>
				<xs:maxLength value="20"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="MR">
		<xs:annotation>
			<xs:documentation>Specifies the maximum number of records displayed per page.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:integer">
				<xs:minInclusive value="1"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="NP">
		<xs:annotation>
			<xs:documentation>Specifies location of the form list and Next/Previous/New Search buttons.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:integer">
				<xs:minInclusive value="1"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="QY">
		<xs:annotation>
			<xs:documentation>Specifies query criteria (field name) for search.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string"/>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="RF">
		<xs:annotation>
			<xs:documentation>Specifies the report form name.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="1"/>
				<xs:maxLength value="20"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="RL" type="xs:boolean">
		<xs:annotation>
			<xs:documentation>Specifies whether to show the form list on the report page.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="RN" type="xs:integer">
		<xs:annotation>
			<xs:documentation>Specifies record number in the current set.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="SE" type="xs:integer">
		<xs:annotation>
			<xs:documentation>Specifies entry in the current set.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="SN">
		<xs:annotation>
			<xs:documentation>Specifies textbase set name for menu screen queries.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="1"/>
				<xs:maxLength value="20"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="TI" type="xs:integer">
		<xs:annotation>
			<xs:documentation>Textbase index. Used with  Multiple Textbase Query (MQ). Specifies which textbase the record comes from.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="TR" type="xs:nonNegativeInteger">
		<xs:annotation>
			<xs:documentation>Specifies the maximum number of records that will be returned when using HTML output.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="TX" type="xs:nonNegativeInteger">
		<xs:annotation>
			<xs:documentation>Specifies the maximum number of records displayed when using XML output. Default is 1000. If set to 0, all records will be returned.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="XC" type="xs:string">
		<xs:annotation>
			<xs:documentation>Specifies the name of the CGI program to use.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="XE">
		<xs:annotation>
			<xs:documentation>Specifies how XML errors are returned if XSL file is specified.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:integer">
				<xs:minInclusive value="0"/>
				<xs:maxInclusive value="2"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="XM" type="xs:boolean">
		<xs:annotation>
			<xs:documentation>Specifies whether to return XML output.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="XP">
		<xs:annotation>
			<xs:documentation>Specifies the expires setting for the HTTP header information passed to the browser.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="1"/>
				<xs:maxLength value="50"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="XS" type="xs:string">
		<xs:annotation>
			<xs:documentation>Specifies which XSL file to use to transform XML output.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="KeyField" type="xs:string">
		<xs:annotation>
			<xs:documentation>Specifies a field that the user wants returned in the XML response.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="KeyFieldsType">
		<xs:annotation>
			<xs:documentation>The parent of the KeyField elements.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="KeyField" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="MatchField" type="xs:string">
		<xs:annotation>
			<xs:documentation>Specifies the name of the field on which records are matched.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="MatchFieldsType">
		<xs:annotation>
			<xs:documentation>The parent of the MatchField elements.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="MatchField" maxOccurs="5"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RecordType" mixed="true">
		<xs:annotation>
			<xs:documentation>Type that defines what the Record element can contain.</xs:documentation>
		</xs:annotation>
		<xs:complexContent mixed="true">
			<xs:restriction base="xs:anyType">
				<xs:sequence>
					<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded">
						<xs:annotation>
							<xs:documentation>A textbase can contain both elements and data.</xs:documentation>
						</xs:annotation>
					</xs:any>
				</xs:sequence>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>
	<xs:complexType name="RecordsetType">
		<xs:annotation>
			<xs:documentation>The parent of the Recordset elements.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Record" type="RecordType" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Retrievable unit of information in a textbase.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
