<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<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>Secret</title>
	<style type="text/css">
	body { font-family: sans-serif}
	label { display: inline-block; width: 12em; margin: 0 1em; text-align: right }
	</style> 
	<model xmlns="http://www.w3.org/2002/xforms">
	   <instance><donnees xmlns=""><mdp/><mdp1>mauvais</mdp1><affiche>false</affiche></donnees></instance>
	   <bind nodeset="affiche" type="xf:boolean"/>
	   <bind nodeset="mdp1" calculate="if(../affiche = 'true', ../mdp, '')"/>
	</model>
</head>
<body>
    <group  xmlns="http://www.w3.org/2002/xforms">
	<secret incremental="true" ref="mdp"><label>Mot de passe :</label></secret>
	<input incremental="true" ref="affiche"><label>Afficher les caractères</label></input>
	<output ref="mdp1"/>
    </group>
</body>
</html>

