<?xml version="1.0" encoding="iso-8859-1"?>
<html
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:xforms="http://www.w3.org/2002/xforms"
 xmlns:ev="http://www.w3.org/2001/xml-events"
 xmlns:xl="http://www.w3.org/1999/xlink"
 xmlns:fp="urn:formsplayer.com"
>
	<object width="0" height="0" id="FormsPlayer" classid="CLSID:4D0ABA11-C5F0-4478-991A-375C4B648F58">
		<b>FormsPlayer has failed to load! Please check your installation.</b>
		<br />
		<br />
	</object>
	<?import namespace="xforms" implementation="#FormsPlayer"?>
	<head>
		<link rel="stylesheet" href="http://www.w3.org/StyleSheets/base"/>
		<link rel="stylesheet" href="http://www.w3.org/2002/09/wbs/basic.css"/>
		<link rel="stylesheet" href="http://www.w3.org/2002/09/wbs/style.css" title="default"/>
		<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/member.css"/>
		<style type="text/css">@import url("http://www.w3.org/StyleSheets/meeting.css");</style>
		<link rel="stylesheet" href="http://www.w3.org/2001/11/results.css"/>
		<link rel="alternate stylesheet" href="http://www.w3.org/2002/09/wbs/noleftbar.css" title="No left bar" type="text/css"/>

		<title>Registration for W3C Technical Plenary and Working Groups meeting event - Web-Based Straw-poll and Balloting System</title>
		<xforms:model>
			<xforms:instance id="instMyAnswers">
				<instanceData xmlns="">
					<day id="0" att="na" wg="" obs="" />
				</instanceData>
			</xforms:instance>

			<!--
				These are the 'rules' - we can fill in the observer node if
				the user wants to be an observer, or the working group node
				if the user says they are attending a working group. Anything
				else means that both nodes are not relevant.
			-->
			<xforms:bind nodeset="day/@obs" relevant="../@att = 'obs'" />
			<xforms:bind nodeset="day/@wg" relevant="../@att = 'wg'" />
		</xforms:model>

		<!--
			Take the strings into a separate instance for easy translation
		-->
		<xforms:model id="mResources">
			<xforms:instance id="instStrings">
				<strings xmlns="">
					<string id="mtg0">CSS Working Group</string>
					<string id="mtg1">MMI Working Group</string>
					<string id="mtg2">Education and Outreach Working Group</string>
					<string id="mtg3">Semantic Web Interest Group</string>
					<string id="mtg4">Web Services Choreography Working Group</string>
					<string id="mtg5">SVG Working Group</string>
					<string id="mtg6">XML Protocol Working Group</string>
					<string id="mtg7">HTML Working Group</string>
					<string id="mtg8">XML Schema Working Group</string>
					<string id="mtg9">Device Independence Working Group</string>
					<string id="mtg10">Quality Assurance Working Group</string>
					<string id="mtg11">XML Core Working Group</string>
					<string id="conf0">Member Only</string>
					<string id="conf1">Public</string>
					<string id="obs0">None</string>
					<string id="obs1"></string>
					<string id="obs2">With Chair's agreement</string>
				</strings>
			</xforms:instance>
		</xforms:model>

		<!--
			Not a great task to add other days
		-->
		<xforms:model id="mMeetings">
			<xforms:instance id="instMeetings">
				<instanceData xmlns="">
					<!--
						confidentiality: members only = 0, public = 1
						observers: none = 0, allowed = 1, with chair's agreement = 2
					-->
					<meeting id="css" mtg="mtg0" conf="conf0" observers="obs0" />
					<meeting id="mmi" mtg="mtg1" conf="conf0" observers="obs1" />
					<meeting id="waieo" mtg="mtg2" conf="conf1" observers="obs2" />
					<meeting id="rdfig" mtg="mtg3" conf="conf1" observers="obs1" />
					<meeting id="wschoreo" mtg="mtg4" conf="conf1" observers="obs2" />
					<meeting id="svg" mtg="mtg5" conf="conf0" observers="obs0" />
					<meeting id="xmlp" mtg="mtg6" conf="conf0" observers="obs0" />
					<meeting id="html" mtg="mtg7" conf="conf0" observers="obs0" />
					<meeting id="xmlschema" mtg="mtg8" conf="conf0" observers="obs2" />
					<meeting id="di" mtg="mtg9" conf="conf0" observers="obs0" />
					<meeting id="qa" mtg="mtg10" conf="conf1" observers="obs1" />
					<meeting id="xmlcore" mtg="mtg11" conf="conf0" observers="obs0" />
				</instanceData>
			</xforms:instance>

			<!--
				These are the lists that we are dealing with - one is a list of
				working group sessions that the user might be attending, and the
				other is a list of working group sessions that accept observers.
			-->
			<xforms:bind id="nsWGMeetings" nodeset="meeting" />
			<xforms:bind id="nsObserversAllowed" nodeset="meeting[@observers != 'obs0']" />
		</xforms:model>
		<style>
			.disabled { display: none; }
		</style>
		<script language="JavaScript">
			function fPdetect() {
				try {
					var fP = new ActiveXObject('XFORMS.Factory');
				}
				catch(e) {
					if (window.confirm("This demo requires formsPlayer. Would you like to open a new window that will take you through the download process?"))
						window.open('http://www.formsplayer.com/download/index.html');
				}
			}
		</script>
	</head>
	<body onload="fPdetect();">
		<h3>Attendance to Monday Mar. 01 meetings</h3>
		<xforms:group ref="day">
			<xforms:select1 ref="@att" appearance="full">
				<xforms:item style="display: block;">
					<xforms:value>na</xforms:value>
					<xforms:label>Not attending that day<br /></xforms:label>
				</xforms:item>
				<xforms:item>
					<xforms:value>wg</xforms:value>
					<xforms:label>Attending as member<br /></xforms:label>
					<xforms:hint>Check the appropriate requests below</xforms:hint>
				</xforms:item>
				<xforms:item>
					<xforms:value>obs</xforms:value>
					<xforms:label>Attending as observer<br /></xforms:label>
					<xforms:hint>Check the appropriate requests below</xforms:hint>
				</xforms:item>
			</xforms:select1>
			<hr style="width: 100%;"/>
			<xforms:select1 ref="@wg" appearance="full">
				<xforms:itemset model="mMeetings" bind="nsWGMeetings">
					<xforms:value ref="@id" />
					<xforms:label ref="concat(
						instance('instStrings')/string[@id=current()/@mtg],
						'&lt;br />'
					)" />
				</xforms:itemset>
			</xforms:select1>
			<br />
			<!--
				Some workarounds going on here ... fixed in next formsPlayer!
			-->
			<xforms:select ref="@obs" appearance="full">
				<xforms:itemset model="mMeetings" bind="nsObserversAllowed">
					<xforms:value ref="@id" />
					<xforms:label ref="concat(
						instance('instStrings')/string[@id=current()/@mtg],
						' [',
						instance('instStrings')/string[@id=current()/@observers],
						']&lt;br />'
					)" />
				</xforms:itemset>
			</xforms:select>
		</xforms:group>
	</body>
</html>
