Stylus Studio XML Editor

Table of contents

Appendices

4 Processing Model

Processing Model

Inclusion as defined in this document is a specific type of [XMLIS] transformation.

The input for the inclusion transformation consists of a source infoset. The output, called the result infoset, is a new infoset which merges the source infoset with the infosets of resources identified by URI references or IRI references appearing in xi:include elements. Thus a mechanism to resolve URIs or IRIs and return the identified resources as infosets is assumed. Well-formed XML entities that do not have defined infosets (e.g. an external entity with multiple top-level elements) are outside the scope of this specification, either for use as a source infoset or the result infoset.

xi:include elements in the source infoset serve as inclusion transformation instructions. The information items located by the xi:include element are called the top-level included items . The top-level included items together with their attributes, namespaces, and descendants, are called the included items . The result infoset is essentially a copy of the source infoset, with each xi:include element and its descendants replaced by its corresponding included items.