<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fox="http://www.og.dti.gov/fox" xmlns:form-layout="http://www.og.dti.gov/fox" xmlns:input-types="http://www.og.dti.gov/fox"  xmlns:fm="http://www.og.dti.gov/fox_module" xmlns:widget="http://www.og.dti.gov/fox" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
C:\pvcswork\Fox\source\altova_xmlspy\schema\fox_schema.xsd">
	<xs:import schemaLocation="C:\pvcswork\Fox\source\altova_xmlspy\schema\fox_import.xsd"/>
	<xs:annotation>
		<xs:appinfo>
			<fm:module>
				<fm:header>
					<fm:name>DEMO_SECURITY_CODE</fm:name>
					<fm:title>FOXOpen Demo Security Code Display</fm:title>
					<fm:application-title>FOXOpen Demo Security Code</fm:application-title>
					<fm:version-no>$Revision$</fm:version-no>
					<fm:version-desc>$Header$</fm:version-desc>
					<fm:history>
          $Log$
          </fm:history>
					<fm:description/>
					<fm:build-notes/>
					<fm:help-text/>
				</fm:header>
				<fm:control>
					<fm:transaction-mode>read-committed</fm:transaction-mode>
					<fm:authentication>not-required</fm:authentication>
				</fm:control>
				<fm:security-list/>
				<fm:library-list>
					<fm:library>LAYOUT1</fm:library>
				</fm:library-list>
				<fm:storage-location-list>
					<fm:storage-location name="main">
						<fm:cache-key string="DEMO_SECURITY_CODE:1">
							<fm:using using-type="UNIQUE"/>
						</fm:cache-key>
						<fm:new-document>
							<fm:root-element>ROOT</fm:root-element>
						</fm:new-document>
					</fm:storage-location>
				</fm:storage-location-list>
				<fm:entry-theme-list>
					<fm:entry-theme name="new">
						<fm:storage-location>main</fm:storage-location>
						<fm:state>state-main</fm:state>
						<fm:attach>/*</fm:attach>
						<fm:do>
							<fm:call action="action-initialise-demo"/>
						</fm:do>
					</fm:entry-theme>
					<fm:entry-theme name="new-enhanced">
						<fm:storage-location>main</fm:storage-location>
						<fm:state>state-mainInfo</fm:state>
						<fm:attach>/*</fm:attach>
						<fm:do>
							<fm:call action="action-initialise-demo"/>
						</fm:do>
					</fm:entry-theme>
					<fm:entry-theme name="popup">
						<fm:storage-location>main</fm:storage-location>
						<fm:state>state-popup</fm:state>
						<fm:attach>/*</fm:attach>
						<fm:do/>
					</fm:entry-theme>
				</fm:entry-theme-list>
				<fm:action-list>
					<fm:action name="action-initialise-demo">
						<fm:do>
							<fm:init target=":{theme}" for-schema="FORM_LAYOUT/* | INPUT_TYPES/*"/>
						</fm:do>
					</fm:action>
					<fm:action name="action-regenerate-captcha">
						<fm:do>
							<fm:remove match=":{theme}/INPUT_TYPES/OBSCURE"/>
							<fm:init target=":{theme}/INPUT_TYPES" for-schema="OBSCURE"/>
						</fm:do>
					</fm:action>
				</fm:action-list>
				<fm:db-interface-list>
					<fm:db-interface name="dbint-security-check">
						<fm:query name="qry-get-rand">
							<fm:select>
SELECT translate(dbms_random.string('u', 4),'OILSBQU','ACDEFGK') || translate(to_char(round(dbms_random.value(100,999))),'018','234') AS "."
FROM dual
              </fm:select>
						</fm:query>
					</fm:db-interface>
				</fm:db-interface-list>
				<fm:presentation>
					<!-- Override buffers within LAYOUT1LIB to remove images -->
					<fm:set-buffer name="buffer-top-left-logo"/>
					<fm:set-buffer name="buffer-mid-left-logo"/>
					<!-- Override topNav and bottomNav to remove -->
					<fm:set-buffer name="buffer-topNav"/>
					<fm:set-buffer name="buffer-bottomNav"/>
					<fm:set-buffer name="buffer-inputTypes">
						<fm:set-out match=":{theme}/INPUT_TYPES" input-types:mode="." fox:formMaxCols="6" fox:debug="false"/>
					</fm:set-buffer>
					<fm:set-buffer name="buffer-content">
						<br/>
						<div class="setoutHeader">Security Code Display</div>
						<table>
							<tr>
								<td>
									<fm:include name="buffer-inputTypes"/>
								</td>
							</tr>
						</table>
					</fm:set-buffer>
				</fm:presentation>
				<fm:state-list>
					<fm:state name="state-main">
						<fm:action-list/>
						<fm:presentation>
							<fm:set-buffer name="buffer-formSetoutInfo"/>
						</fm:presentation>
					</fm:state>
					<fm:state name="state-mainInfo">
						<fm:action-list/>
						<fm:presentation>
							<fm:set-buffer name="buffer-formSetoutInfo">
								<table style="background-color: #FFFFFF; border: 2px solid #6096BF;">
									<tr>
										<td style="padding: 10px;">test</td>
									</tr>
								</table>
							</fm:set-buffer>
						</fm:presentation>
					</fm:state>
				</fm:state-list>
				<fm:template-list/>
				<fm:map-set-list/>
			</fm:module>
		</xs:appinfo>
	</xs:annotation>
	<xs:element name="ROOT"/>
	<xs:element name="theme">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="INPUT_TYPES" input-types:ro=".">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="phantom-spacer-3" type="phantom" fox:widget="static-text" fox:prompt="&#160;" fox:promptWidth="9999" input-types:ro="."/>
							<xs:element name="OBSCURE" type="xs:string" fox:widget="obscure" input-types:ro="." fox:init-db-interface="dbint-security-check" fox:init-query="qry-get-rand" fox:prompt="Security code Display" fox:promptLayout="north"/>
							<xs:element name="phantom-regenerate-captcha" type="phantom" fox:widget="link" input-types:edit="." input-types:run="." fox:action="action-regenerate-captcha" fox:prompt="The image is unreadable, give me a new one" fox:fieldxlock="6" fox:fieldWidth="10"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
