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 add a key named precinctNames based on each votes element's precinct name. Which of the following elements do you recommend he add to the style sheet to create the key with the correct syntax?
A) <xsl:key name="precinctNames" match="//votes" use="@precinct" />
B) <xsl:key name="precinctNames" match="//votes" select="@precinct" />
C) <xsl:key name="precinctNames" match="//votes" use="precinct" />
D) <xsl:key name="precinctNames" match="//votes" select="precinct" />
Correct Answer:

Verified
Correct Answer:
Verified
Q7: Many XSLT processors support _ functions that
Q8: The default value for the axis portion
Q9: Keys have _ as well as values,
Q10: If you designate one node set as
Q11: The _ function returns a node-set that
Q13: The expression to select the first property
Q14: Generated IDs are useful when the link
Q15: If you find it difficult to work
Q16: In a step pattern, the _ specifies
Q17: Templates with no mode attribute are applied