<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://example.info" xml:lang="en" lang="en">
<head>
<title>XHTML Test Document</title>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
}
table {
background-color: #ccc;
border: 2px outset white;
}
td {
margin: 2px;
padding: 4px;
background-color: #f8f8f8;
border: 2px inset white;
}
span {
color: red;
font-weight: bold;
}
label {
font-weight: normal;
margin: 6px 0 2px 0;
}
::value {
padding: 1px;
}
input {
color: black;
font-weight: normal;
}
textarea {
height: 40px;
}
trigger {
margin-top:30px;
}
</style>
<xf:model>
<xf:instance>
<root xmlns="http://example.info">
<noop></noop>
<value></value>
</root>
</xf:instance>
</xf:model>
</head>
<body>
<xf:textarea ref="/my:root/my:noop">
<xf:label>Write your answer here</xf:label>
</xf:textarea>
<xf:trigger>
<xf:label>Reveal Answer</xf:label>
<!-- @@@ DENG foible: should be ev:event="DOMActivate" -->
<xf:setvalue ev:event="click" ref="/my:root/my:value"><![CDATA[<input ref="fname"><label>First Name</label></input>
<input ref="lname"><label>Last Name</label></input>
<submit submission="s"><label>Go!</label></submit>]]></xf:setvalue>
</xf:trigger>
<xf:textarea ref="/my:root/my:value">
<xf:label>Answer</xf:label>
</xf:textarea>
</body>
</html>