Name

instance( ) — provides access to an alternate XForms instance

Synopsis

Defined in: XForms 1.0
Parameters: string instance-idref (required)
Return type: node-set

XPath allows multiple separate instance data areas. This function returns the root node of the specified instance data. Normally, this function appears on the left-hand side of a path expression.

This example returns a node-set consisting of the rate element node from the instance named “taxtable”:

instance('taxtable')/rate

Get XForms Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.