Forked from avernet/bind-calculate-variables.xhtml
Created
February 12, 2011 01:55
-
-
Save ebruchez/823402 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> | |
<head> | |
<xf:model> | |
<xf:instance> | |
<items xmlns=""> | |
<item> | |
<from/> | |
<to/> | |
</item> | |
</items> | |
</xf:instance> | |
<xf:bind ref="item"> | |
<xf:bind name="from" ref="from"/> | |
<xf:bind ref="to" calculate="$from"/> | |
</xf:bind> | |
</xf:model> | |
</head> | |
<body> | |
<xf:repeat ref="item" id="my-repeat"> | |
<xf:input ref="from"/> | |
<xf:output value="to"/> | |
<br/> | |
</xf:repeat> | |
<xf:group> | |
<xf:trigger> | |
<xf:label>Insert</xf:label> | |
<xf:insert ev:event="DOMActivate" nodeset="item"/> | |
</xf:trigger> | |
</xf:group> | |
<!--<fr:xforms-inspector xmlns:fr="http://orbeon.org/oxf/xml/form-runner"/>--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment