Solved

Craig Is Working to Develop an XSLT Application to Display

Question 62

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. -Now that the candidatesDoc variable has been created, Craig would like to define a key named cKey based on the values of the candidateID attribute for the candidate. Which of the following do you tell him shows the correct syntax to use to define this key? A)  <xsl:key name= cKey  match= candidate  use= @candidateID  /> B)  <xsl:key name= cKey  match= candidate  select= @candidateID  /> C)  <xsl:key name= cKey  match= candidate  use= candidateID  /> D)  <xsl:key name= cKey  match= candidate  select= candidateID  />
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.
-Now that the candidatesDoc variable has been created, Craig would like to define a key named cKey based on the values of the candidateID attribute for the candidate. Which of the following do you tell him shows the correct syntax to use to define this key?


A) <xsl:key name="cKey" match="candidate" use="@candidateID" />
B) <xsl:key name="cKey" match="candidate" select="@candidateID" />
C) <xsl:key name="cKey" match="candidate" use="candidateID" />
D) <xsl:key name="cKey" match="candidate" select="candidateID" />

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents