XForms 2.0 support
Orbeon Forms 4.3
Here at the feature from XForms 2.0 and its XPath expression module that are available as of Orbeon Forms 4.3:
xf:var
xf:repeat
over sequences of atomic values and nodesdeprecation of
nodeset
in favor ofref
multiple MIPs of the same property affecting the same node
AVTs (Attribute Value Templates)
accept
attribute onxf:upload
xf:property
child ofxf:dispatch
elementiterate
attribute on actionsxf:valid()
function
Orbeon Forms 4.5
XForms 2.0 features added with Orbeon Forms 4.5:
xf:bind()
function
Orbeon Forms 4.8
XForms 2.0 features added with Orbeon Forms 4.8:
caseref
attribute onxf:switch
This allows storing the value of the currently-selected case to instance data.
case()
functionThis function was already available as
xxf:case()
in previous versions.
Orbeon Forms 2016.1
XForms 2.0 features added with Orbeon Forms 2016.1:
xf:submission
andxf:instance
JSON support.This allows receiving
application/json
content. The JSON received is converted to an XML representation friendly to XPath expressions. This allows receiving data from JSON services and using it in your forms, including via Form Builder services.This also allows sending
application/json
content, based on an XML representation.
xf:param
andxf:body
onxf:action
type attribute on
xf:action` for types:text/javascript
/application/javascript
/javascript
text/xpath
/application/xpath
/xpath
Orbeon Forms 2017.1
XForms 2.0 features added with Orbeon Forms 2017.1:
nonrelevant
attribute on<xf:submission>
This deprecates the
relevant
attribute.The values are
keep
,remove
, andempty
.
Orbeon Forms 2019.1
XForms 2.0 features added with Orbeon Forms 2019.1:
target
on<xf:load>
This deprecates the
xxf:target
attribute.
URI functions:
xf:uri-scheme($uri as xs:string) as xs:string?
xf:uri-scheme-specific-part($uri as xs:string, $raw as xs:boolean) as xs:string?
xf:uri-authority($uri as xs:string, $raw as xs:boolean) as xs:string?
xf:uri-user-info($uri as xs:string, $raw as xs:boolean) as xs:string?
xf:uri-host($uri as xs:string) as xs:string?
xf:uri-port($uri as xs:string) as xs:integer?
xf:uri-path($uri as xs:string, $raw as xs:boolean) as xs:string?
xf:uri-query($uri as xs:string, $raw as xs:boolean) as xs:string?
xf:uri-fragment($uri as xs:string, $raw as xs:boolean) as xs:string?
xf:uri-param-names($uri as xs:string) as xs:string*
xf:uri-param-values($uri as xs:string, $name as xs:string) as xs:string*
Orbeon Forms 2020.1
Features
XForms 2.0 features added with Orbeon Forms 2020.1:
xf:copy
Orbeon Forms implements XForms 2.0 enhancements to
xf:copy
including support for:xf:item
attributes and other node types
XPath 2
NOTE: While
xf:copy
is an XForms 1.0 feature, Orbeon Forms didn't support it until version 2020.1.
Example of xf:copy
attributes support
xf:copy
attributes supportLet's say we an XML representation which proposes a discriminated union based on a type
attribute. We have, in the data, either:
or:
With xf:copy
, the selection is written as follows:
The if ... then ... else
pattern in the second xf:copy
is there so that, in case the user has already selected a CustomButtonLabel
and edited the value of the button label (here "Custom Button" initially), there will still be an exact match and the item shows as selected.
Orbeon Forms 2021.1
the
xforms-dialog-shown
/xforms-dialog-hidden
eventsxf:parse()
function
Remaining features
For what remains to be implemented, see the issues tagged "XForms 2.0".
Last updated