Skip to content

Instantly share code, notes, and snippets.

@ebruchez
Created December 9, 2014 18:07
Show Gist options
  • Select an option

  • Save ebruchez/22eb411465dd3e6459eb to your computer and use it in GitHub Desktop.

Select an option

Save ebruchez/22eb411465dd3e6459eb to your computer and use it in GitHub Desktop.
Example showing an insert with xf:attribute()
<xh:html
xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xh:head>
<xf:model>
<xf:instance>
<form xmlns=""/>
</xf:instance>
</xf:model>
</xh:head>
<xh:body>
<xf:trigger>
<xf:label>Insert</xf:label>
<xf:insert
xmlns:foo="http://example.org/foo"
event="DOMActivate"
context="instance()"
origin="xf:attribute('foo:uuid', '232D19C0-CC63-4C60-8E89-2C4B390C20D8')"/>
</xf:trigger>
<fr:xforms-inspector/>
</xh:body>
</xh:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment