xff:has-fallback-value

xs:boolean=xff:has-fallback-value( $variable as xs:QName)

Last updated on 27-07-2011 at 22:00:00.

Returns true() for factVariables that have been assigned a fallback value, for use in XPath expressions of a precondition, a consistency assertion, value assertion, formula aspect rule, or generic message XPath expression. The function is not applicable to variable-set variable and filter expressions.

Fallback Value

OIM Status

Supported

Parameters

Name Type Details
variable xs:QName The variable to report on whether it has a fallback value.

Output

Type: xs:boolean

Returns true() if the argument variable is a factVariable and its value has been determined on the basis of the content of the @fallbackValue attribute.

Returns false() if the argument variable is a factVariable and its value has been determined on the basis of its source sequence rather than the content of a @fallbackValue attribute.

Returns false() if the argument is not a factVariable (e.g., generalVariable, formula parameter, or a variable assigned by an XPath 'for', 'some', or 'every' clause).

Errors

Code Details
xffe:invalidFunctionUse This error MUST be thrown if the this function is referenced in an XPath expression invoked in variable-set variable evaluation, such as by a generalVariable or filter XPath expression. A formula processor MAY detect this error as a static compilation-time error if it this function is referenced in variable-set variable evaluation expressions (by generalVariable or filters). A formula processor MUST detect this error as a dynamic run-time error if it this function is referenced in variable-set variable evaluation expressions (by generalVariable or filters), such as during execution of an XPath or other language implementation of custom functions that were invoked dynamically in variable-set evaluation expressions (by generalVariable or filters). This error MUST be thrown if the this function is referenced in an XPath expression invoked in an XPath function related to an existence assertion, including if referenced in an XPath expression from generic messages relating to an existence assertion.

Conformance suite

80156 xff.has-fallback-value function testcase.xml [ download ]

Owners

Name Affiliation Email Start End
Herm Fischer Mark V Systems (Formerly UBmatrix) fischer@markv.com 08-07-2011 at 22:00:00

Revisions

Name On Details
Herm Fischer 08-07-2011 at 22:00:00 Defined the function