<< Chapter < Page Chapter >> Page >
This module contains review questions, answers, and explanations keyed to Chapter 2 of the textbook titled XML: Visual QuickStart Guide, 2nd Edition. By Kevin Howard Goldberg.

Table of contents

Preface

This material is published in support of the course identified as ITSE 1356 - Extensible Markup Language (XML) at Austin Community College in Austin, TX. As of the Spring 2014semester, the textbook for this course is XML: Visual QuickStart Guide, 2nd Edition. By Kevin Howard Goldberg.

This module contains review questions, answers, and explanations keyed to Chapter 2 of the textbook.

The questions and the answers are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.

Questions

Question 1 .

True or False: Transforming an XML document means using XML to analyze its contents and then take certain actions depending on what elements are found.

Answer 1

Question 2

True or False: The transformation process starts with two documents:

  1. the XML document containing the source data to be transformed
  2. the XSLT stylesheet document describing the rules of the transformation

Answer 2

Question 3

True or False: An XSLT transformation requires an XSLT processor.

Answer 3

Question 4

True or False: An XML document must always include an xml-stylesheet processing instruction in order to undergo an XSLT transformation.

Answer 4

Question 5

True or False: Listing 1 below shows the proper syntax for an xml-stylesheet processing instruction.

Listing 1 . Question 5.
<?xml-stylesheet type="text/xsl" href="MyFile.xsl"?>

Answer 5

Question 6

True or False: A node tree is a hierarchical representation of the XSL document.

Answer 6

Question 7

True or False: A node in a node tree is one individual piece of the XML document such as an element, an attribute, or some text content.

Answer 7

Question 8

True or False: An XSLT style sheet contains instructions on what should be done with the nodes in a node tree in order to perform an XSLT transformation.

Answer 8

Question 9

True or False: Each XSLT template contains three parts:

  1. a label that identifies the nodes to which the template applies
  2. instructions about the transformation that should take place
  3. identification of the XML document to which the transformation is to be applied

Answer 9

Question 10

True or False: XSLT templates cannot contain literal elements.

Answer 10

Question 11

True or False: XSLT style sheets are text files and are saved with an extension of .xml.

Answer 11

Question 12

True or False: XSLT uses the XPath language to identify nodes.

Answer 12

Question 13

True or False: An XSLT style sheet is actually an XML document.

Answer 13

Question 14

True or False: An XSLT style sheet does not require an XML declaration.

Answer 14

Question 15

True or False: In an XSLT style sheet, the XML declaration should be followed by the W3C namespace for style sheets.

Answer 15

Question 16

True or False: In an XSLT style sheet, the W3C namespace for style sheets must be followed by the root template.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Introduction to xml. OpenStax CNX. Dec 02, 2014 Download for free at https://legacy.cnx.org/content/col11207/1.18
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Introduction to xml' conversation and receive update notifications?

Ask