XSLT/XPath - (Data|Document) Model


Like the Document Object Model (DOM), the XSLT/XPath data model 1) consists of a tree containing a variety of nodes.

The XPath specification defines an abstract document model that defines seven kinds of nodes 2):

In this abstract model, syntactic distinctions disappear, and you are left with a normalized view of the data.

The text node will consist of normalized data, as it exists after all parsing is complete. So the text will contain a < character, whether or not an entity reference such as < or a CDATA section was used to include it. (Similarly, the text will contain an & character, whether it was delivered using & or it was in a CDATA section).

Each element has an associated string-value, which is formed by concatenating all the text segments that lie under the element.

Powered by ComboStrap