Home > Articles > Web Services > XML

  • Print
  • + Share This
Like this article? We recommend

Multidocument Transitions

In a multidocument application, at most two documents are loaded at any one time: the application root document and an application leaf document. As transitions from one document to another occur using <choice>, <goto> <link>, or <submit> elements, some transitions will be within an application, while others may set up new application contexts.

The preservation of an existing application or the initialization of a new root context will depend on the type of transition. The possibilities include the following:

  • Root to Leaf within Application: A root to leaf transition within the same application occurs when the current document is a root document (with no application attribute), and the target document contains an application attribute that refers the current document. When this occurs, the application root context is preserved.
  • Leaf to Leaf within Application: A leaf to leaf transition within the same application occurs when the current document is a leaf document and the target document’s application attribute value resolves to the URI of the root document. The application root context is preserved.
  • Leaf to Root within Application: A leaf to root transition within the same application occurs when the current document is a leaf document and the target document’s URI is the root document.
  • Root to Root: A root to root transition occurs when the current document is a root document and the target document is a root document; that is, it does not have an application attribute.
  • Transition to the Leaf of Another Application: A transition to a new application occurs when the loaded document contains an application attribute that is not the current root document. This results in the loading of a new root document and the new leaf document.
  • + Share This
  • 🔖 Save To Your Account