Skip to content

Instantly share code, notes, and snippets.

@avernet
Created November 14, 2014 01:18
Show Gist options
  • Save avernet/cee38cb9542259516590 to your computer and use it in GitHub Desktop.
Save avernet/cee38cb9542259516590 to your computer and use it in GitHub Desktop.
<property as="xs:string" name="oxf.fr.detail.process.send.*.*">
require-uploads
then validate-all
then send(uri = "http://validate")
then success-message(message = "Everything good")
recover error-message(message = "Data invalid")
</property>
<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"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xh:head>
<xf:model>
<xf:instance><gaga/></xf:instance>
<xf:submission id="respond" method="post" resource="/fr/service/custom/orbeon/echo" replace="all"/>
<xf:action ev:event="xforms-model-construct-done">
<!--<xf:action type="xpath">frf:sendError(500)</xf:action>-->
<xf:send submission="respond"/>
</xf:action>
</xf:model>
</xh:head>
</xh:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment