Skip to content

Instantly share code, notes, and snippets.

@avernet
avernet / gist:9216037
Last active August 29, 2015 13:56 — forked from anonymous/gist:9108734
Setting the value of a control with an xf:setvalue
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:exf="http://www.exforms.org/exf/1-0"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:saxon="http://saxon.sf.net/"
<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/>
@avernet
avernet / list-general.coffee
Created May 3, 2011 02:48 — forked from igstan/state-monad.coffee
State Monad in CoffeeScript
#### Monad - common code
# bind takes a step and processor,
# and combines them into a step
# (S t) -> (t -> S u) -> (S u)
bind = (step, processor) -> (container) ->
result = step container
(processor result.value) result.container
@avernet
avernet / gist:315165
Created February 25, 2010 23:19 — forked from anonymous/gist:314246
Sorting in datatable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:widget="http://www.orbeon.com/oxf/xml/widget"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:ev="http://www.w3.org/2001/xml-events">
<head>