<?xml version="1.0"?>
<!--Author: TVR-->
<?xml-stylesheet type="text/css" href="../xhtml2.css"?>
<!DOCTYPE html [
<!ATTLIST section id ID #IMPLIED>
<!ATTLIST h       id ID #IMPLIED>
<!ATTLIST div     id ID #IMPLIED>
<!ATTLIST nl      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:e="urn:e-shop" 
  xml:lang="en">
  <head>
    <model xmlns="http://www.w3.org/2002/xforms"
      id="location">
      <instance xmlns="" id="l">
        <country>usa</country>
        <state/>
        <city/>
      </instance>
      <instance id="atlas"
      src="atlas.xml"/>
    </model>
  </head>
  <body>
    <group xmlns="http://www.w3.org/2002/xforms">
      <select1 model="location" ref="/country">
        <label>Country</label>
        <itemset nodeset="instance('atlas)/country">
          <label ref="name"/>
          <value ref="@country-code"/>
        </itemset>
      </select1>
      <select1  ref="state">
        <label>State</label>
        <itemset
          nodeset="instance('atlas')/country[@country-code=&quot;instance('location')/country&quot;]/state">
          <label ref="name"/>
          <value ref="@state-code"/>
        </itemset>
      </select1>
      <select1  ref="city">
        <label>City</label>
        <itemset
          nodeset="instance('atlas')/country[@country-code=&quot;instance('location')/country&quot;]/state[@state-code=&quot;instance('location')/state]&quot;/city">
          <label ref="name"/>
          <value ref="@city-code"/>
        </itemset>
      </select1>
    </group>
  </body>
</html>
