Skip to content

Instantly share code, notes, and snippets.

@avernet
Created February 28, 2011 19:19
Show Gist options
  • Save avernet/847841 to your computer and use it in GitHub Desktop.
Save avernet/847841 to your computer and use it in GitHub Desktop.
<xbl:xbl xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
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:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:saxon="http://saxon.sf.net/"
xmlns:xbl="http://www.w3.org/ns/xbl"
xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:howto="http://www.orbeon.com/howto"
xmlns:exf="http://www.exforms.org/exf/1-0"
xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary">
<xbl:binding element="howto|input">
<xbl:template>
<xforms:group xbl:attr="model context ref bind" xxbl:scope="outer" appearance="xxforms:internal">
<xforms:output ref=".[exf:readonly()]" xbl:attr="class">
<xbl:content includes="xforms|label, xforms|help, xforms|hint"/>
</xforms:output>
<xforms:input ref=".[not(exf:readonly())]" xbl:attr="class">
<xbl:content includes="xforms|label, xforms|help, xforms|hint"/>
</xforms:input>
</xforms:group>
</xbl:template>
</xbl:binding>
</xbl:xbl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment