Skip to content

Instantly share code, notes, and snippets.

View ebruchez's full-sized avatar

Erik Bruchez ebruchez

View GitHub Profile
@ebruchez
ebruchez / gist:f9cdcd658c264a566226
Created December 4, 2014 20:16
Form showing how to concatenate the results of a service and set the result to a readonly textarea
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:saxon="http://saxon.sf.net/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:sql="http://orbeon.org/oxf/xml/sql"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms">
<xh:head>
<xh:link rel="stylesheet" type="text/css" href="/forms/foo.css"/>
<xf:model>
<xf:instance>
<first-name xmlns=""/>
</xf:instance>
</xf:model>
</xh:head>
<xh:body>
trait Animal { def name: String; def word: String; def talk() = println(s"$name says $word") }
trait Flying { def fly() = println("flap flap") }
trait Swimming { def swim() = println("splish splash") }
trait Walking { def walk() = println("stomp stomp") }
def newAlligator =
new Animal with Walking with Swimming { val name = "alligator"; val word = "grrr" }
def newDuck =
@ebruchez
ebruchez / bookshelf.xml
Last active August 29, 2015 14:06
Examples of XML output for #1907
<?xml version="1.0" encoding="utf-8"?>
<control id="#document" type="root" relevant="true">
<control id="xf-10" type="text" relevant="true">
<mips readonly="false" required="false" valid="true"/>
<value>Orbeon Forms Bookshelf</value>
<external-value>Orbeon Forms Bookshelf</external-value>
</control>
<control id="fr-view" type="group" relevant="true" class="container fr-view fr-mode-new">
<mips readonly="false" required="false" valid="true"/>
<control id="xf-198" type="group" relevant="true" class="navbar navbar-inverse">
<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/"
.orbeon .xbl-fr-wizard {
width: 1040px;
}
.orbeon .xbl-fr-wizard .fr-wizard-toc {
left: -838px;
}
.orbeon .xbl-fr-wizard .fr-wizard-body {
width: 838px;
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:saxon="http://saxon.sf.net/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:sql="http://orbeon.org/oxf/xml/sql"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
<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/"
<web-app version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee">
<!-- Declare and configure the Orbeon Forms XForms filter -->
<filter>
<filter-name>orbeon-form-runner-filter</filter-name>
<filter-class>org.orbeon.oxf.fr.embedding.servlet.ServletFilter</filter-class>
<init-param>
<param-name>form-runner-url</param-name>
<param-value>http://localhost:8080/orbeon</param-value>
</init-param>
<init-param>
<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/"