XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / Summary and exercises / Quiz
(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 1.)
You should be able to answer these questions without much difficulty. One or more answers may be correct for each. Explanations and additional background information are available under Answers to the review questions.
Question 1: Which node type is not a “Child” of its parent?
a) The text node
b) The attribute node
c) The comment node
d) The processing-instruction node
e) The namespace node
Question 2: What is the “value” of an element node?
a) Text and element content
b) Attribute values and text content
c) Its own text content and that of child elements
d) Only its immediate child text nodes
Question 3: The document node is ...
a) ... the processed XML document’s root element.
b) ... the XSLT stylesheet’s root element.
c) ... a virtual node containing the processed XML document.
Question 4: Why is the XSL namespace URI important for xsl:stylesheet?
a) The processor retrieves instructions from that address.
b) It identifies XSLT elements as instructions.
c) Not important at all. All that matters is that the prefix is xsl.
Question 5: Which XSLT instruction constructs a node sequence?
a) xsl:stylesheet
b) xsl:template
c) xsl:apply-templates
d) xsl:value-of
Question 6: What initiates XSLT processing?
a) With a template matching the document node.
b) With the first template in document order.
c) With the highest-priority template.
Copyright © Galileo Press, Bonn 2008
You may print the online version for your private use.
Otherwise, this chapter from "XSLT 2.0 & XPath 2.0 ― Das umfassende Handbuch" is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn