[Accessibility conventions are described at the bottom of the page]
*** This is a free preview excerpt of a commercial publication. ***

8. Constructing the result tree
[> 9.][< 7.0][^^^]
8.0 Constructing result-tree nodes
[> 9.][< 8.][^^][^^^]
Result-tree nodes are used both in the result tree and in the transformation
[[1] - the creation of the result tree
 [1] - [T1.0]creating a result-tree fragment
 [1] - [T2.0]creating a temporary tree
]
Recall the earlier processing model diagram ([Figure 4.1])
[[1] - the diagram depicts the copying of nodes from the operation tree and the source tree to the result tree
[[2] - the operation tree nodes that are copied to the result tree are the literal result elements
][1] - also possible to explicitly add nodes of different types to the result tree
]
XSLT supports:
[[1] - direct construction of result tree nodes
 [1] - different ways to copy nodes from the source tree to the result tree
 [1] - constructing text nodes in the result tree reflecting numbering information found in the source tree
]
The XSLT instructions covered in this chapter are as follows.
Instructions related to building the result tree:
[[1] - [<xsl:attribute>]
[[2] - instantiate an attribute node in the result tree
][1] - [<xsl:attribute-set>]
[[2] - declare a set of attribute nodes for use in the result tree
][1] - [<xsl:comment>]
[[2] - instantiate a comment node in the result tree
][1] - [T2.0] [<xsl:document>]
[[2] - instantiate a document node in the result tree
][1] - [<xsl:element>]
[[2] - instantiate an element node in the result tree
][1] - [T2.0] [<xsl:namespace>]
[[2] - instantiate a namespace node in the result tree
][1] - [<xsl:processing-instruction>]
[[2] - instantiate a processing instruction node in the result tree
][1] - [<xsl:text>]
[[2] - instantiate a text node in the result tree
][1] - [<xsl:copy>]
[[2] - instantiate a copy of the current node in the result tree
][1] - [<xsl:copy-of>]
[[2] - instantiate a complete copy of a specified node in the result tree
][1] - [<xsl:number>]
[[2] - add a string to the result tree representing the position of the current node
]]

*** This is a free preview excerpt of a commercial publication. ***

This is an accessible version of Crane's commercial training material. The content has been specifically designed to assist screen reader software in viewing the entire textual content. Figures are replaced with text narratives.

Navigation hints are in square brackets:
[Tx.x] and [Fx.x] are textual representations of the applicability icons;
[digit] indicates list depth for nested lists;
[link [URL]] indicates the URL of a hyperlink if different than link;
[EXAMPLE] indicates an example listing of code;
[FIGURE] indicates the presence of a figure replaced by its description;
[>] jumps forward;
[<] jumps backward;
[^] jumps to start of the section;
[^^] jumps to the start of the chapter;
[^^^] jumps to the table of contents.
Suggestions for improvement are welcome: [info@CraneSoftwrights.com]
Book sales: [http://www.CraneSoftwrights.com/links/trn-acc.htm]
Information: [http://www.CraneSoftwrights.com/links/info-acc.htm]
This content is protected by copyright and, as there are no means to protect this accessible version from plagiarism, please do not make any commercial edition available to others.

+//ISBN 978-1-894049::CSL::Courses::PTUX//DOCUMENT Practical Transformation Using XSLT and XPath 2011-02-11 21:00UTC//EN
Practical Transformation Using XSLT and XPath
Fourteenth Edition - 2011-02-11
ISBN 978-1-894049-24-5
Copyright © Crane Softwrights Ltd.