Skip to content

Instantly share code, notes, and snippets.

@avernet
Created September 30, 2011 19:48
Show Gist options
  • Save avernet/1254785 to your computer and use it in GitHub Desktop.
Save avernet/1254785 to your computer and use it in GitHub Desktop.
Using the XForms Test Suite Echo Service
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
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:fr="http://orbeon.org/oxf/xml/form-runner">
<xhtml:head>
<xhtml:title>Using the XForms Test Suite Echo Service</xhtml:title>
<xforms:model>
<xforms:instance id="data">
<instance>
<name/>
<length/>
</instance>
</xforms:instance>
<xforms:bind ref="length" calculate="string-length(../name)"/>
<xforms:submission id="echo-submission" method="post"
resource="http://xformstest.org/cgi-bin/echo.sh"
ref="instance('data')" replace="all"/>
</xforms:model>
</xhtml:head>
<xhtml:body>
<xforms:input ref="name">
<xforms:label>Name: </xforms:label>
</xforms:input>
<xforms:submit submission="echo-submission">
<xforms:label>Send</xforms:label>
</xforms:submit>
</xhtml:body>
</xhtml:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment