<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?>
<?xsltforms-options debug="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://www.w3.org/1999/xhtml"
      xmlns:xf="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<head>
	<title>Credit</title>
	<style type="text/css">
	  body { font-family: sans-serif}
	  label { display: inline-block; width: 6em; margin: 0 1em }
	  .h {font-weight: bold}
	</style>

	<xf:model>
	    <xf:instance>
                <data xmlns="">
		      <variant>basic</variant>
		      <color>black</color>
	    	</data>
            </xf:instance>
	    <xf:bind nodeset="color"
	        readonly="../variant='basic'"/>
	</xf:model>
</head>
<body>
	<xf:select1 ref="variant">
	   <xf:label>Variant</xf:label>
	   <xf:item>
	      <xf:label>Basic</xf:label>
	      <xf:value>basic</xf:value>
	   </xf:item>
	   <xf:item>
	      <xf:label>Deluxe</xf:label>
	      <xf:value>deluxe</xf:value>
	   </xf:item>
	</xf:select1>
<br />
	<xf:select1 ref="color">
	   <xf:label>Colour</xf:label>
	   <xf:item>
	      <xf:label>Black</xf:label>
	      <xf:value>black</xf:value>
	   </xf:item>
	   <xf:item>
	      <xf:label>Red</xf:label>
	      <xf:value>red</xf:value>
	   </xf:item>
	   <xf:item>
	      <xf:label>Yellow</xf:label>
	      <xf:value>yellow</xf:value>
	   </xf:item>
	</xf:select1>
</body>
</html>
