Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebruchez/823402 to your computer and use it in GitHub Desktop.
Save ebruchez/823402 to your computer and use it in GitHub Desktop.
<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