<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="address.css" type="text/css"?>
<addressBook xmlns="http://overton.ca/address" xmlns:html="http://www.w3.org/1999/xhtml">
	<html:script type="application/x-javascript" src="../src/core.js"/>
	<html:script type="application/x-javascript" src="address.js"/>
	<html:div class="description">
		<html:h3 class="center">Mozile XML Demonstration</html:h3>
		<html:p>This is a demonstration of Mozile 0.8 editing XML without using an RNG schema. The cards at the right can be edited using modes selected below. It is known to work in Firefox 1.5, but <html:strong>you must enable Caret Browsing mode by pressing F7</html:strong>. It does not work properly in Internet Explorer or most other browsers at the present time.</html:p>
		<html:p>You can set the default editing mode to "text" or "rich". The latter allows splitting and merging of elements while the former does not. You can also use an RNG schema to structure editing. Using a schema allows for more detailed control over editing behaviour.</html:p>
		<html:p>For example, the RNG schema tells Mozile which elements are allowed to contain non-white-space text. Without a schema Mozile decides to ignore white-space when an element's text children are all white-space. The second example shows what happens when text white-space is not ignored.</html:p>
		<html:p class="center">
			Default Editing Mode:
			<html:a href="javascript: edit(null)">None</html:a>
			<html:a href="javascript: edit(false)">Text</html:a>
			<html:a href="javascript: edit(true)">Rich</html:a>
		</html:p>
		<html:p class="center">
			RNG Schema: 
			<html:a href="javascript: schema(null)">None</html:a>
			<html:a href="javascript: schema(true)">Address Book</html:a>
		</html:p>

		<!--
		<html:a href="javascript: undefined" onclick="mozile.edit.start()">Start Editing</html:a>
		<html:a href="javascript: undefined" onclick="mozile.edit.stop()">Stop Editing</html:a>
		-->
	</html:div>
  <card>
    <name>Jane Smith</name>
    <email>js@example.com</email>
  </card>
  <card>
    <givenName>John</givenName>
    <familyName>Smith</familyName>
    <email>js2@example.com</email>
    Text inside "card" element. Ignored when schema is used.
   </card>
  <card name="Ted">
    <name>Fred Bloggs</name>
    <email>fb@example.net</email>
    <description>This is a description.</description>
  </card>
  <card>
    <givenName>Fred</givenName>
    <familyName>Bloggs</familyName>
    <email>fb@example.net</email>
    <note>This is a note.</note>
    <description>This is a description.</description>
  </card>
</addressBook>