Multiple Choice
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?
A) <xsl:variable name="candidatesDoc" match="document() 'candidates.xml') " />
B) <xsl:variable name="candidatesDoc" select="doc('candidates.xml') " />
C) <xsl:variable name="candidatesDoc" match="doc('candidates.xml') " />
D) <xsl:variable name="candidatesDoc" select="document() 'candidates.xml') " />
Correct Answer:

Verified
Correct Answer:
Verified
Q30: _ are location paths that allow the
Q31: The first step in using extensions is
Q32: In the generate-id() function, if you omit
Q33: In a step pattern, the _ defines
Q34: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TBX9153/.jpg" alt=" Sandra is working
Q36: You can support processors that do not
Q37: The node-test part of the step pattern
Q38: A DTD provides a way to uniquely
Q39: The _ function generates a unique ID
Q40: One item you can declare in a