Skip to content

Instantly share code, notes, and snippets.

View MartijnR's full-sized avatar

Martijn van de Rijdt MartijnR

View GitHub Profile
<?xml version="1.0"?>
<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:odk="http://www.opendatakit.org/xforms"
xmlns:orx="http://openrosa.org/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>pyxform_autotesttitle</h:title>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><h:html xmlns="http://www.w3.org/2002/xforms" xmlns:OpenClinica="http://openclinica.com/odm" xmlns:enk="http://enketo.org/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:oc="http://openclinica.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Vital Signs</h:title>
<model>
<itext>
<translation default="true()" lang="English">
<text id="static_instance-state-50">
<value>District of Columbia</value>
</text>
<text id="static_instance-tunits-1">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:enk="http://enketo.org/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:oc="http://openclinica.com/xforms"
xmlns:orx="http://openrosa.org/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:enk="http://enketo.org/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:oc="http://openclinica.com/xforms"
xmlns:orx="http://openrosa.org/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><h:html xmlns="http://www.w3.org/2002/xforms" xmlns:OpenClinica="http://openclinica.com/odm" xmlns:enk="http://enketo.org/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:oc="http://openclinica.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Vital Signs</h:title>
<model>
<itext>
<translation default="true()" lang="English">
<text id="static_instance-state-50">
<value>District of Columbia</value>
</text>
<text id="static_instance-tunits-1">
<?xml version="1.0"?>
<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>cascading_internal_translated</h:title>
<model>
<itext>
<translation lang="English">
<text id="country:label">
<value>Country</value>
</text>
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" >
<h:head>
<h:title>Test: Group Branching NEW</h:title>
<model>
<instance>
<data id="TestGroupBranch New" version="4">
<nodeA/>
<group>
<nodeB/>
@MartijnR
MartijnR / repeat-do-not-ask-again.xml
Last active August 4, 2016 19:19
Form that contains a repeat with a condition to not show a question if subsequent repeats if the current repeat has a certain value
<?xml version="1.0"?>
<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>repeat-do-not-ask-again</h:title>
<model>
<instance>
<repeat-do-not-ask-again id="repeat-do-not-ask-again">
<rep jr:template="">
<txt/>
<number/>
@MartijnR
MartijnR / index.html
Last active November 17, 2015 17:54
Demonstrates issue with Chrome retrieving and displaying blobs from indexedDB
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<ol>
<li>Image preview is shown to verify that blob is succesfully saved in indexedDB and can be retrieved</li>
<li>Refresh page, confirm image preview is still shown</li>
<li>Load or refresh page a few hours, or a day, later: Image can still be retrieved from store, is blob, has file size, but cannot be shown any more (404). See console.</li>
@MartijnR
MartijnR / index.html
Last active November 17, 2015 17:34
Demonstrates issue with Chrome retrieving and displaying a File from indexedDB
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<ol>
<li>Add image file to input</li>
<li>Confirm image preview is shown to verify that blob is succesfully saved in indexedDB and can be retrieved</li>
<li>Refresh page, confirm image preview is still shown</li>