<?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;
}
</style>
<xf:model>
<xf:instance>
<my:root>
<my:noop>nodeset=""</my:noop>
<my:value></my:value>
</my:root>
</xf:instance>
</xf:model>
</head>
<body>
<xf:textarea ref="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:value"><![CDATA[nodeset="my:InvoiceLine/my:InvoicedQuantity/@unitCode"]]></xf:setvalue>
</xf:trigger>
<xf:textarea ref="my:value">
<xf:label>Answer</xf:label>
</xf:textarea>
</body>
</html>