XForms 2.0 support
Last updated
Last updated
Here at the feature from and its that are available as of Orbeon Forms 4.3:
xf:var
xf:repeat
over sequences of atomic values and nodes
deprecation of nodeset
in favor of ref
multiple MIPs of the same property affecting the same node
AVTs (Attribute Value Templates)
accept
attribute on xf:upload
xf:property
child of xf:dispatch
element
iterate
attribute on actions
xf:valid()
function
XForms 2.0 features added with Orbeon Forms 4.5:
xf:bind()
function
XForms 2.0 features added with Orbeon Forms 4.8:
caseref
attribute on xf:switch
This allows storing the value of the currently-selected case to instance data.
case()
function
This function was already available as xxf:case()
in previous versions.
XForms 2.0 features added with Orbeon Forms 2016.1:
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
and xf:body
on xf:action
type attribute on
xf:action` for types:
text/javascript
/ application/javascript
/ javascript
text/xpath
/ application/xpath
/ xpath
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
, and empty
.
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*
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.
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.
the xforms-dialog-shown
/xforms-dialog-hidden
events
xf:parse()
function
xf:submission
and xf:instance
.
For what remains to be implemented, see the .