<?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:input-types="http://www.og.dti.gov/fox" xmlns:dataset="http://www.og.dti.gov/fox" xmlns:fm="http://www.og.dti.gov/fox_module" xmlns:popup="http://www.og.dti.gov/fox" xmlns:widget="http://www.og.dti.gov/fox" xmlns:confirm="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_POPUP</fm:name>
					<fm:title>FOX Demo Popup and Confirm </fm:title>
					<fm:application-title>FOX Demo Popup and Confirm</fm:application-title>
					<fm:version-no>$Revision:   1.0  $</fm:version-no>
					<fm:version-desc/>
					<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_POPUP: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="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="POPUP/* | CONFIRM/*"/>
						</fm:do>
					</fm:action>
					<fm:action name="action-modeless-popup" widget:run="." fox:prompt="Modeless Popup">
						<fm:do>
							<fm:call-module module="FOX_TESTER" theme="popup" type="modeless" callback-action="action-set-flag" windowProperties="width=500, height=200, resizable=yes"/>
						</fm:do>
					</fm:action>
					<fm:action name="action-set-flag">
						<fm:do>
							<fm:assign setTarget="/*/POPUP/MODELESS_POPUP_WORKING_FLAG" textValue="True"/>
						</fm:do>
					</fm:action>
					<fm:action name="action-confirm" fox:confirm="Confirm?">
						<fm:do>
							<fm:assign setTarget="/*/CONFIRM/CONFIRM_POPUP_WORKING_FLAG" textValue="True"/>
							<fm:alert message="Confirmed!"/>
						</fm:do>
					</fm:action>
				</fm:action-list>
				<fm:presentation>
					<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:presentation>
				<fm:state-list>
					<fm:state name="state-main">
						<fm:action-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-content">
								<br/>
								<table width="30%">
									<tr>
										<th class="setoutForm" align="left">
											<fm:include name="buffer-popupTitle"/>
										</th>
									</tr>
								</table>
								<br/>
								<br/>
        							Please click the link to open the modeless popup and select 'Confirm' if it works	
								<br/>
								<br/>
								<fm:set-out match=":{theme}/POPUP" popup:mode="."/>
								<br/>
        							Please click the link below and select 'OK' from the confirm box
								<br/>
								<br/>
								<fm:set-out match=":{theme}/CONFIRM" confirm:mode="."/>
								<br/>
							</fm:set-buffer>
							<fm:set-buffer name="buffer-popupTitle">Popups</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="POPUP" popup:ro=".">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="MODELESS_POPUP" type="phantom" popup:ro="." popup:run="." fox:widget="link" fox:action="action-modeless-popup"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="CONFIRM" confirm:ro=".">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="CONFIRM_POPUP" type="phantom" confirm:ro="." confirm:run="." fox:widget="link" fox:action="action-confirm"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
