medic-enketo-xslt
Version:
XSL stylesheets for the Enketo XForm transformation to be run client-side in a web browser
7 lines (3 loc) • 2.56 kB
text/xml
<form autocomplete="off" novalidate="novalidate" class="or clearfix" dir="ltr" id="GEO"><!--This form was created by transforming a OpenRosa-flavored (X)Form using an XSL stylesheet created by Enketo LLC.--><section class="form-logo"> </section><h3 dir="auto" id="form-title">Report Location</h3>
<section class="or-group or-appearance-field-list " name="/geolocation-test/Location"><h4><span lang="" class="question-label active">Location</span></h4><label class="question non-select or-appearance-hide-input "><span lang="" class="question-label active">Click on button to set location</span><span class="required">*</span><input type="text" name="/geolocation-test/Location/location_gps" data-required="true()" data-type-xml="geopoint"/><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label><label class="note non-select "><span lang="" class="question-label active"><strong></strong></span><input type="text" name="/geolocation-test/Location/location_note_message" data-type-xml="string" readonly="readonly"/></label><label class="note non-select "><span lang="" class="question-label active">_<span class="or-output" data-value=" /geolocation-test/Location/location_hint_calc "/>_</span><input type="text" name="/geolocation-test/Location/location_hint_note" data-type-xml="string" readonly="readonly"/></label></section><!--end of group -->
<fieldset id="or-calculated-items" style="display:none;"><label class="calculation non-select "><input type="hidden" name="/geolocation-test/Location/location_calc" data-calculate="concat('Your location for this report is ', if(string-length( /geolocation-test/Location/location_gps ) > 0, /geolocation-test/Location/location_gps , 'not yet set.'))" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/geolocation-test/Location/location_hint_calc" data-calculate="if(string-length( /geolocation-test/Location/location_gps ) > 0,'If you wish to reset the location, click the trash icon above and click the "crosshair" button', 'Please make sure that your GPS is ON and that you click the "crosshair" button above before submitting your form')" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/geolocation-test/meta/instanceID" data-calculate="concat('uuid:', uuid())" data-type-xml="string"/></label></fieldset></form>