medic-enketo-xslt
Version:
XSL stylesheets for the Enketo XForm transformation to be run client-side in a web browser
28 lines (26 loc) • 918 B
text/xml
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>{{'clinic.new' | translate}}</h:title>
<model>
<instance>
<clinic id="clinic" version="1">
<loc/>
<contact/>
<meta>
<instanceID/>
</meta>
</clinic>
</instance>
<bind nodeset="/clinic/loc" type="db:place"/>
<bind nodeset="/clinic/contact" type="db:person"/>
</model>
</h:head>
<h:body>
<input ref="/clinic/loc" appearance="dbObject" data-db-type="location">
<label>{{'clinic.loc' | translate}}</label>
</input>
<input ref="/clinic/contact" appearance="dbObject allow-new" data-db-type="location">
<label>{{'clinic.contact' | translate}}</label>
</input>
</h:body>
</h:html>