ACTION-2053 - Work out how to replace link-exception


It doesn't seem too hard. We create an xforms-link-error event, which, like
xforms-version-error, defaults to halting processing but is cancelable.

If processing continues because the event is caught and canceled, we need
to decide what to do with the following:

1. instance() function for instances which didn't load.
2. Access to XPath data model of instances which didn't load.
3. Handling of types associated with schemas which didn't load.

For #1, the solution is simple: do as in the cases where the function does
not refer to an existing instance:

    "In all other cases, an empty sequence is returned." [1]

For #2, since we typically use XPath 2 which works on the XQuery 1.0 and
XPath 2.0 Data Model (XDM), we could rely on the fact that an empty
document is allowed:

    "This data model is more permissive: a Document Node may be empty," [3]

For #3, a simple solution is to do the same as when a type cannot be found,

    "If the datatype cannot be obtained as just described, then the Default
Value of xs:string is used." [2].



Received on Wednesday, 24 February 2016 05:52:29 UTC