Exam 7: Creating Element Groups

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The key() function can also be used with a(n) _____ to select a specific node from a node set.

(Multiple Choice)
4.9/5
(29)

You can use the _____ function to create links for specific locations within a web page.

(Short Answer)
4.9/5
(33)

  Craig is working to develop an XSLT application to display election results, using XML files with the structures shown in the accompanying figure. He has heard that you have experience developing applications, and comes to you for guidance. -Craig used the code you suggested to create the cKey key. However, he says he encountering problems when he tries to use this key to actually display data from the candidates.xml external file using the key. You explain to him that he will have to explicitly change the context node to the root element of the candidates.xml file first using a _____ element. Craig is working to develop an XSLT application to display election results, using XML files with the structures shown in the accompanying figure. He has heard that you have experience developing applications, and comes to you for guidance. -Craig used the code you suggested to create the cKey key. However, he says he encountering problems when he tries to use this key to actually display data from the candidates.xml external file using the key. You explain to him that he will have to explicitly change the context node to the root element of the candidates.xml file first using a _____ element.

(Multiple Choice)
4.9/5
(33)

All IDs belong to the same index, even if they are associated with different attributes.

(True/False)
4.8/5
(31)
Identify the letter of the choice that best matches the phrase or definition.
Function to return the maximum value from node-set
function-available
Extension used to create a loop with the Saxon processor
#IMPLIED
Element used to simplify grouping in XSLT 2.0
for-each-group
Correct Answer:
Verified
Premises:
Responses:
Function to return the maximum value from node-set
function-available
Extension used to create a loop with the Saxon processor
#IMPLIED
Element used to simplify grouping in XSLT 2.0
for-each-group
Function to return nodes with the highest value in node-set
axis
Axis value that selects all children of the context node
while
Function used to test availability of an extension function
namespace
Part of the step pattern that species the direction the XSLT processor should move
math.highest(node-set)
Used to distinguish one template from another when applied to the same node set
mode attribute
Axis value that selects all namespace nodes of the context node
math.max(node-set)
Indicates an optional ID
child
(Matching)
4.7/5
(29)

To create a template for a particular node, include the mode attribute in the opening <xsl:template> tag.

(True/False)
4.8/5
(43)

The step pattern axis value _____ selects all nodes that are descendants of the context node, starting with the context node and moving down the node tree.

(Short Answer)
4.8/5
(34)

Because only one template can be processed with any node, the processor must choose between competing templates for the same node. Using the mode attribute is one way of explicitly assigning a template to a specific node.  Explain the default priority number rules used by an XSLT processor to determine template priority.

(Essay)
4.8/5
(38)

  -The accompanying figure shows a sample node set, with the context node shaded blue. In each image, the objects in the node set that are selected by a specific step pattern axis value are numbered and shaded in red. Which axis value is represented by image A? -The accompanying figure shows a sample node set, with the context node shaded blue. In each image, the objects in the node set that are selected by a specific step pattern axis value are numbered and shaded in red. Which axis value is represented by image A?

(Multiple Choice)
4.8/5
(40)

_____ are location paths that allow the processor to move freely around the node tree in any direction.

(Short Answer)
4.8/5
(25)

The first step in using extensions is to define an extension's namespace within the _____ element.

(Multiple Choice)
4.9/5
(34)

In the generate-id() function, if you omit the node set argument, the function _____.

(Multiple Choice)
4.9/5
(33)

In a step pattern, the _____ defines properties of the node to be matched.

(Multiple Choice)
4.9/5
(42)

  Sandra is working with an XML file containing product orders with the structure shown in the accompanying figure. She was just introduced to step patterns, and would like to incorporate them into the style sheet she is developing to display the orders data. She comes to you for help in developing expressions incorporating step patterns. -Sandra would like to write an expression to select the third order element that follows the context node as a sibling. Which of the following do you tell her is the correct expression? Sandra is working with an XML file containing product orders with the structure shown in the accompanying figure. She was just introduced to step patterns, and would like to incorporate them into the style sheet she is developing to display the orders data. She comes to you for help in developing expressions incorporating step patterns. -Sandra would like to write an expression to select the third order element that follows the context node as a sibling. Which of the following do you tell her is the correct expression?

(Multiple Choice)
4.7/5
(29)

  Craig is working to develop an XSLT application to display election results, using XML files with the structures shown in the accompanying figure. He has heard that you have experience developing applications, and comes to you for guidance. -Craig would like to be able to use data from both documents in his application. You suggest he create variables that will allow him to pull the node sets from both files. Which of the following shows the correct syntax to create a variable named candidatesDoc to reference the root node of the candidates.xml file? Craig is working to develop an XSLT application to display election results, using XML files with the structures shown in the accompanying figure. He has heard that you have experience developing applications, and comes to you for guidance. -Craig would like to be able to use data from both documents in his application. You suggest he create variables that will allow him to pull the node sets from both files. Which of the following shows the correct syntax to create a variable named candidatesDoc to reference the root node of the candidates.xml file?

(Multiple Choice)
4.7/5
(38)

You can support processors that do not recognize an extension element or attribute by using the fallback element.

(True/False)
4.9/5
(42)

The node-test part of the step pattern specifies the direction the XSLT processor should move.

(True/False)
4.9/5
(28)

A DTD provides a way to uniquely identify a particular item in the source document.

(True/False)
4.7/5
(33)

The _____ function generates a unique ID for a specified node set.

(Short Answer)
4.8/5
(37)

One item you can declare in a DTD is the ID attribute, which provides a way to uniquely identify a particular item in the source document.  Review the syntax for declaring the ID attribute, and explain two benefits of declaring an ID.

(Essay)
4.7/5
(35)
Showing 21 - 40 of 91
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)