Created
May 29, 2014 19:08
-
-
Save avernet/0ac1d376991c6333f57c to your computer and use it in GitHub Desktop.
Form in multiple languages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml" | |
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:xi="http://www.w3.org/2001/XInclude" | |
xmlns:saxon="http://saxon.sf.net/" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:fb="http://orbeon.org/oxf/xml/form-builder" | |
xmlns:sql="http://orbeon.org/oxf/xml/sql" | |
xmlns:fr="http://orbeon.org/oxf/xml/form-runner" | |
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:exf="http://www.exforms.org/exf/1-0"> | |
<xh:head> | |
<xh:title>Untitled Form</xh:title> | |
<xf:model id="fr-form-model" xxf:expose-xpath-types="true"> | |
<xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all"> | |
<form> | |
<section-1> | |
<control-1/> | |
</section-1> | |
</form> | |
</xf:instance> | |
<xf:bind id="fr-form-binds" ref="instance('fr-form-instance')"> | |
<xf:bind id="section-1-bind" name="section-1" ref="section-1"> | |
<xf:bind id="control-1-bind" name="control-1" ref="control-1" required="true()"/> | |
</xf:bind> | |
</xf:bind> | |
<xf:instance xxf:readonly="true" id="fr-form-metadata" xxf:exclude-result-prefixes="#all"> | |
<metadata> | |
<application-name>a</application-name> | |
<form-name>a</form-name> | |
<title xml:lang="fr">Untitled Form</title> | |
<description xml:lang="fr"/> | |
<title xml:lang="sv">Untitled Form</title> | |
<description xml:lang="sv"/> | |
<title xml:lang="de">Untitled Form</title> | |
<description xml:lang="de"/> | |
<title xml:lang="en">Untitled Form</title> | |
<description xml:lang="en"/> | |
</metadata> | |
</xf:instance> | |
<xf:instance id="fr-form-attachments" xxf:exclude-result-prefixes="#all"> | |
<attachments> | |
<css mediatype="text/css" filename="" size=""/> | |
<pdf mediatype="application/pdf" filename="" size=""/> | |
</attachments> | |
</xf:instance> | |
<xf:instance id="fr-form-resources" xxf:readonly="false" xxf:exclude-result-prefixes="#all"> | |
<resources> | |
<resource xml:lang="fr"> | |
<section-1> | |
<label>Untitled Section</label> | |
</section-1> | |
<control-1> | |
<label>fr</label> | |
<hint/> | |
</control-1> | |
</resource> | |
<resource xml:lang="sv"> | |
<section-1> | |
<label>Untitled Section</label> | |
</section-1> | |
<control-1> | |
<label>sv</label> | |
<hint/> | |
</control-1> | |
</resource> | |
<resource xml:lang="de"> | |
<section-1> | |
<label>Untitled Section</label> | |
</section-1> | |
<control-1> | |
<label>de</label> | |
<hint/> | |
</control-1> | |
</resource> | |
<resource xml:lang="en"> | |
<section-1> | |
<label>Untitled Section</label> | |
</section-1> | |
<control-1> | |
<label>en</label> | |
<hint/> | |
</control-1> | |
</resource> | |
</resources> | |
</xf:instance> | |
<xf:instance id="fr-service-request-instance" xxf:exclude-result-prefixes="#all"> | |
<request/> | |
</xf:instance> | |
<xf:instance id="fr-service-response-instance" xxf:exclude-result-prefixes="#all"> | |
<response/> | |
</xf:instance> | |
</xf:model> | |
</xh:head> | |
<xh:body> | |
<fr:view> | |
<fr:body xmlns:xbl="http://www.w3.org/ns/xbl" | |
xmlns:oxf="http://www.orbeon.com/oxf/processors" | |
xmlns:p="http://www.orbeon.com/oxf/pipeline"> | |
<fr:section id="section-1-control" bind="section-1-bind"> | |
<xf:label ref="$form-resources/section-1/label"/> | |
<fr:grid> | |
<xh:tr> | |
<xh:td> | |
<xf:input id="control-1-control" bind="control-1-bind"> | |
<xf:label ref="$form-resources/control-1/label"/> | |
<xf:hint ref="$form-resources/control-1/hint"/> | |
<xf:alert ref="$fr-resources/detail/labels/alert"/> | |
</xf:input> | |
</xh:td> | |
<xh:td/> | |
</xh:tr> | |
</fr:grid> | |
</fr:section> | |
</fr:body> | |
</fr:view> | |
</xh:body> | |
</xh:html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment