<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="../test.css" ?>
<!DOCTYPE html [
	<!ATTLIST section
	id ID #IMPLIED
>
	<!ATTLIST h
	id ID #IMPLIED
>
	<!ATTLIST div
	id ID #IMPLIED
>
	<!ATTLIST nl
	id ID #IMPLIED
>
	<!-- for the model attribute to work -->
	<!ATTLIST xforms:model
	id ID #IMPLIED
>
	<!-- for the bind attribute to work -->
	<!ATTLIST xforms:bind
	id ID #IMPLIED
>
	<!-- for the instance() function to work -->
	<!ATTLIST xforms:instance
	id ID #IMPLIED
>
	<!-- for submit to work -->
	<!ATTLIST xforms:submission
	id ID #IMPLIED
>
	<!-- for setfocus and other events to work -->
	<!ATTLIST xforms:input
	id ID #IMPLIED
>
	<!ATTLIST xforms:secret
	id ID #IMPLIED
>
	<!ATTLIST xforms:textarea
	id ID #IMPLIED
>
	<!ATTLIST xforms:output
	id ID #IMPLIED
>
	<!ATTLIST xforms:upload
	id ID #IMPLIED
>
	<!ATTLIST xforms:range
	id ID #IMPLIED
>
	<!ATTLIST xforms:trigger
	id ID #IMPLIED
>
	<!ATTLIST xforms:submit
	id ID #IMPLIED
>
	<!ATTLIST xforms:select
	id ID #IMPLIED
>
	<!ATTLIST xforms:select1
	id ID #IMPLIED
>
	<!-- for toggle to work -->
	<!ATTLIST xforms:case
	id ID #IMPLIED
>
	<!-- for repeat stuff to work -->
	<!ATTLIST xforms:repeat
	id ID #IMPLIED
>
	<!-- (also any element with xforms:repeat-* attributes -->
	<!ATTLIST table
	id ID #IMPLIED
>
	<!ATTLIST td
	id ID #IMPLIED
>
]>
<html xmlns="http://www.w3.org/2002/06/xhtml2" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"  xmlns:an="http://www.example.com/A-namespace" xml:lang="en">
	<head>
		<title>xsi:schemaLocation and xsi:noNamespaceSchemaLocation must be ignored</title>
		<xforms:model id="model-001">
			<xforms:instance xmlns="">
				<!--xsi:noNamespaceSchemaLocation must be ignored, and default datatype be used-->
				<data xsi:noNamespaceSchemaLocation="noNamespace.xsd">
					<my_element>A String</my_element>
					<my_integer xsi:type="xsd:integer">666</my_integer>
				</data>
			</xforms:instance>
		</xforms:model>
		<xforms:model id="model-002">
			<xforms:instance>
				<!--xsi:noschemaLocation must be ignored, and default datatype be used-->
				<an:data xsi:schemaLocation="namespace.xsd">
					<an:my_element>Another string</an:my_element>
				</an:data>
			</xforms:instance>
		</xforms:model>
	</head>
	<body>
		<h1>xsi:schemaLocation and xsi:noNamespaceSchemaLocation must be ignored</h1>
		<h2>xsi:noNamespaceSchemaLocation</h2>
		<xforms:group model="model-001">
			<xforms:range ref="my_element">
				<xforms:label>This must fail to bind to default type string</xforms:label>
			</xforms:range>
		</xforms:group>
		<h2>xsi:schemaLocation</h2>
		<xforms:group model="model-002">
			<xforms:range ref="an:my_element">
				<xforms:label>This must fail to bind to default type string</xforms:label>
			</xforms:range>
		</xforms:group>
		<h2>Working range</h2>
		<xforms:group model="model-001">
			<xforms:range ref="my_integer">
				<xforms:label>This must fail to bind to default type string</xforms:label>
			</xforms:range>
		</xforms:group>

	</body>
</html>
