Last active
August 29, 2015 13:56
-
-
Save ebruchez/9194725 to your computer and use it in GitHub Desktop.
Example of use of fr:latlong
This file contains 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:xf="http://www.w3.org/2002/xforms" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"> | |
<xh:head> | |
<xh:title>Latitude / longitude</xh:title> | |
<xh:style type="text/css"> | |
.orbeon fieldset.xforms-group { margin-top: 10px } | |
.orbeon .xforms-label { font-style: italic } | |
.orbeon .xbl-fr-latlong { display: inline-block } | |
.orbeon .xbl-fr-latlong .xforms-input { display: inline-block } | |
.orbeon .xbl-fr-latlong input { width: 7em } | |
</xh:style> | |
<xf:model> | |
<xf:instance> | |
<latlong> | |
<latlong/> | |
<latlong/> | |
</latlong> | |
</xf:instance> | |
</xf:model> | |
</xh:head> | |
<xh:body> | |
<xf:group context="latlong[1]" appearance="xxf:fieldset"> | |
<xf:label>First value</xf:label> | |
<fr:latlong ref="."/> | |
<xf:output ref="."/> | |
</xf:group> | |
<xf:group context="latlong[2]" appearance="xxf:fieldset"> | |
<xf:label>Second value</xf:label> | |
<fr:latlong ref="."/> | |
<xf:output ref="."/> | |
</xf:group> | |
<xf:group appearance="xxf:fieldset"> | |
<xf:label>Within repeat</xf:label> | |
<xf:repeat ref="*"> | |
<fr:latlong ref="."/> | |
<xf:output ref="."/> | |
<xh:br/> | |
</xf:repeat> | |
</xf:group> | |
</xh:body> | |
</xh:html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment