Skip to content

Instantly share code, notes, and snippets.

View ebruchez's full-sized avatar

Erik Bruchez ebruchez

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ebruchez on github.
  • I am ebruchez (https://keybase.io/ebruchez) on keybase.
  • I have a public key whose fingerprint is BF13 BC5B 3FC2 BB3F AD52 60B1 A817 05F4 968A 6E4D

To claim this, I am signing this object:

@ebruchez
ebruchez / server.xml
Last active January 11, 2023 19:21
Example of basic Tomcat server.xml with SQL Server datasource
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
<Listener className="org.apache.catalina.core.JasperListener"/>
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
<xh:html
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xh="http://www.w3.org/1999/xhtml">
<xh:head>
<xf:model id="myModel">
<xf:instance xmlns="" id="myData">
@ebruchez
ebruchez / form-builder.xhtml
Last active August 29, 2015 14:11
Passing a URL to a form and outputting a clickable link
<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/"

I take it all back! […] There's certain kinds of men, in every field, that I can talk to as well as I can talk to a good scientist. […] I know what the condition is: that he did whatever he did as far as he can go [, therefore] he is up against mysteries [and awe] all the way around the edge. - Richard Feynman

<html xmlns="http://www.w3.org/1999/xhtml"
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:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
<head>
<title>Test</title>
<xf:model>
<xf:instance id="people-instance">
<xf:var
name="control-binding"
xmlns:control="java:org.orbeon.oxf.xforms.control.XFormsValueControl"
value="control:boundNode(fbf:findConcreteControlByName($control-name))"/>
<?xml version="1.0" encoding="UTF-8"?><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:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:exf="http://www.exforms.org/exf/1-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xh:head>
<xf:model xmlns:fb="http://orbeon.org/oxf/xml/form-builder" id="fr-form-model" xxf:noscript-support="false">
<xf:instance id="fr-form-instance">
<form>
<text-controls>
<textarea>Music is an art form whose medium is sound. Common elements of music are pitch (which governs melody and harmony), rhythm
@ebruchez
ebruchez / gist:22eb411465dd3e6459eb
Created December 9, 2014 18:07
Example showing an insert with xf:attribute()
<xh:html
xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xh:head>
<xf:model>
<xf:instance>
<form xmlns=""/>
</xf:instance>
</xf:model>
@ebruchez
ebruchez / gist:80f156fd8642afc45809
Created December 6, 2014 20:00
Calling JavaScript from a process
<property as="xs:string" name="oxf.fr.detail.process.send.*.*">
then navigate(uri = "javascript:myFunction();")
</property>