medic-enketo-xslt
Version:
XSL stylesheets for the Enketo XForm transformation to be run client-side in a web browser
8 lines (4 loc) • 3.18 kB
text/xml
<form autocomplete="off" novalidate="novalidate" class="or clearfix" dir="ltr" id="TR"><!--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">Pictorial Report</h3><select id="form-languages" style="display:none;" data-default-lang="default"><option value="default" data-dir="ltr">default</option></select>
<label class="question non-select or-appearance-numbers "><span lang="default" class="option-label active"/><img lang="default" class="active" src="jr://lonely.png" alt="image"/><span class="required">*</span><span lang="" class="or-hint active">This is the 5 digit number associated to this woman's pregnancy</span><input type="text" name="/data/something" data-required="true()" data-type-xml="string"/><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="question non-select or-appearance-numbers "><span lang="default" class="question-label or-form-big-image " data-itext-id="/images/also-big">jr://big.png</span><span lang="default" class="option-label active"/><img lang="default" class="active" src="jr://small.png" alt="image"/><span class="required">*</span><span lang="" class="or-hint active">This is the 5 digit number associated to this woman's pregnancy</span><input type="text" name="/data/another" data-required="true()" data-type-xml="string"/><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>
<fieldset id="or-preload-items" style="display:none;"><label class="calculation non-select "><input type="hidden" name="/data/meta/start" data-preload="timestamp" data-preload-params="start" data-type-xml="dateTime"/></label><label class="calculation non-select "><input type="hidden" name="/data/meta/end" data-preload="timestamp" data-preload-params="end" data-type-xml="dateTime"/></label><label class="calculation non-select "><input type="hidden" name="/data/meta/subscriberID" data-preload="property" data-preload-params="uri:subscriberid" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/data/meta/deviceID" data-preload="property" data-preload-params="uri:deviceid" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/data/meta/phonenumber" data-preload="property" data-preload-params="phonenumber" data-type-xml="string"/></label></fieldset><fieldset id="or-calculated-items" style="display:none;"><label class="calculation non-select "><input type="hidden" name="/data/meta/instanceID" data-calculate="concat('uuid:', uuid())" data-type-xml="string"/></label><label class="calculation non-select "><input type="hidden" name="/data/meta/instanceName" data-calculate="concat('Visit: ', /data/pregnancy_id )" data-type-xml="string"/></label></fieldset></form>