Skip to content

Instantly share code, notes, and snippets.

@avernet
Forked from ebruchez/gist:2764922
Created May 21, 2012 22:58
Show Gist options
  • Save avernet/2765232 to your computer and use it in GitHub Desktop.
Save avernet/2765232 to your computer and use it in GitHub Desktop.
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xhtml:head>
<xforms:model>
<xforms:instance>
<instance>
<readwrite/>
<readonly>2012-06-12</readonly>
<datetime/>
</instance>
</xforms:instance>
<xforms:bind ref="readwrite" type="xs:date"/>
<xforms:bind ref="readonly" type="xs:date" readonly="true()"/>
<xforms:bind ref="datetime" type="xs:dateTime"/>
</xforms:model>
</xhtml:head>
<xhtml:body>
<xforms:input ref="readwrite"/>
<xforms:input ref="readonly"/>
<xforms:input ref="datetime"/>
</xhtml:body>
</xhtml:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment