Skip to content

Instantly share code, notes, and snippets.

@ebruchez
Created March 3, 2010 02:58
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/320259 to your computer and use it in GitHub Desktop.
Save ebruchez/320259 to your computer and use it in GitHub Desktop.
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
xmlns:xbl="http://www.w3.org/ns/xbl"
xmlns:exforms="http://www.exforms.org/exf/1-0"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xhtml:head>
<xforms:model id="model">
<xforms:instance id="items">
<items>
<item label="Apple" value="apple"/>
<item label="Orange" value="orange"/>
<item label="Banana" value="banana"/>
<item label="Kiwi" value="kiwi"/>
</items>
</xforms:instance>
</xforms:model>
</xhtml:head>
<xhtml:body>
<xforms:repeat nodeset="item">
<xforms:input ref="@value" xxforms:size="10"/>
</xforms:repeat>
<xforms:trigger>
<xforms:label>Add</xforms:label>
<xforms:insert nodeset="item" ev:event="DOMActivate"/>
</xforms:trigger>
</xhtml:body>
</xhtml:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment