Skip to content

Instantly share code, notes, and snippets.

View ebruchez's full-sized avatar

Erik Bruchez ebruchez

View GitHub Profile
@ebruchez
ebruchez / view.xhtml
Created March 1, 2018 00:20
Simple fr:tree-select1 example
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xh:head>
<xh:title>XForms Hello</xh:title>
<xh:script type="text/javascript" src="/apps/fr/resources/scalajs/orbeon-form-runner.js"/>
<xf:model xxf:assets.baseline.excludes="/ops/javascript/scalajs/orbeon-xforms.js">
@ebruchez
ebruchez / view.xhtml
Created February 28, 2018 00:38
Standalone test form for #3477 "Improve performance or large forms in Form Builder"
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:xbl="http://www.w3.org/ns/xbl"
xmlns:xxbl="http://orbeon.org/oxf/xml/xbl">
<xh:head>
<xf:model id="model">
BindingIndex(List((BindingDescriptor(Some(Q{http://www.w3.org/2002/xforms}xf:select),None,Some(BindingAttributeDescriptor(appearance,~=,scroll))),AbstractBinding(List(Selector(ElementWithFiltersSelector(Some(TypeSelector(Some(Some(fr)),box-select)),List()),List()), Selector(ElementWithFiltersSelector(Some(TypeSelector(Some(Some(xf)),select)),List(AttributeFilter(None,appearance,Some(AttributePredicate(~=,scroll))))),List())),Some(Q{http://orbeon.org/oxf/xml/form-runner}fr:box-select),Some(fr-box-select),ConcreteElement [Element: <xbl:binding uri: http://www.w3.org/ns/xbl attributes: [ConcreteAttribute [Attribute: name id value "fr-box-select-binding"], ConcreteAttribute [Attribute: name element value "fr|box-select, xf|select[appearance ~= scroll]"], ConcreteAttribute [Attribute: name xxbl:mode value "lhha binding value"]]/>] userData: line 30, column 133 of oxf:/xbl/orbeon/box-select/box-select.xbl,Some(/xbl/orbeon/box-select/box-select.xbl),1505242058000,Some(fr-box-select-binding),ArrayBuffer(),ArrayBuffer
<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/"
<div class="orbeon orbeon-portlet-div xforms-disable-alert-as-tooltip"><link rel="stylesheet" href="wsrp_rewrite?wsrp-urlType=resource&amp;wsrp-navigationalState=orbeon.path%3D%252Fxforms-server%252F0f55c3fc5685f7ed8e45e4e18f1ab8912ecb227c%252Forbeon-6223253ad3b290874a3b95740396c687134f4e3a.css/wsrp_rewrite" type="text/css" media="all"><link rel="stylesheet" href="wsrp_rewrite?wsrp-urlType=resource&amp;wsrp-navigationalState=orbeon.path%3D%252Fxforms-server%252F0f55c3fc5685f7ed8e45e4e18f1ab8912ecb227c%252Forbeon-19868130b26955dabb3ef346da390963f69e3a52.css/wsrp_rewrite" type="text/css" media="all"><style type="text/css" media="all">
html body form.xforms-initially-hidden, html body .xforms-form .xforms-initially-hidden { display: none }
</style><style type="text/css" media="all">
.xbl-fr-box-select {
display: inline-block;
box-sizing: border-box;
-moz-box-sizing: border-box;
width: 100%;
}
@ebruchez
ebruchez / form.xhtml
Created February 7, 2017 00:57
Sample for #3105
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
xmlns:saxon="http://saxon.sf.net/"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sql="http://orbeon.org/oxf/xml/sql"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xi="http://www.w3.org/2001/XInclude"
@ebruchez
ebruchez / page-flow.xml
Created November 4, 2016 00:14
Simple service to post XForms and return the processed instance server-side
<controller xmlns="http://www.orbeon.com/oxf/controller">
<service
path="/validation/validate"
view="validate.xpl"
public-methods="POST"/>
<epilogue url="oxf:/config/epilogue.xpl"/>
</controller>
@ebruchez
ebruchez / form.xhtml
Created November 3, 2016 23:19
Form with calculated HTML value
<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/"
@ebruchez
ebruchez / form.xhtml
Last active November 3, 2016 18:11
Example for StackOverflow question 40397904
<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/"
@ebruchez
ebruchez / form.xhtml
Created October 27, 2016 21:49
Form for #2979
<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/"