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