Skip to content

Instantly share code, notes, and snippets.

@ebruchez
Created September 5, 2010 02:11
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/565669 to your computer and use it in GitHub Desktop.
Save ebruchez/565669 to your computer and use it in GitHub Desktop.
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xh:head>
<xh:title>XForms Submission with Action URL</xh:title>
<xf:model>
<xf:instance>
<response/>
</xf:instance>
<xf:insert ev:event="xforms-model-construct-done" nodeset="instance()" origin="xxf:get-request-attribute('response-instance')" />
<xf:submission id="submit" method="post" ref="instance()" resource="{action}"/>
</xf:model>
</xh:head>
<xh:body>
<xf:submit submission="submit">
<xf:label>Submit!</xf:label>
</xf:submit>
</xh:body>
</xh:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment