Hue is developing an XSLT style sheet to display data from a research survey. The structure of the surveys.xml file is shown in the accompanying figure. She comes to you for assistance in preparing the final file.
-Hue would like to define a location path that matches both the surveyID and staffID elements nested within the survey element. Which of the following templates do you tell her properly matches both elements?
A) <xsl:template match="@surveyID|@staffID"> <td><xsl:value-of select="." /></td>
</xsl:template>
B) <xsl:template match="."> <td><xsl:value-of select="@surveyID|@staffID" /></td>
</xsl:template>
C) <xsl:template match=@"surveyID|staffID"> <td><xsl:value-of select="." /></td>
</xsl:template>
D) <xsl:template match="@surveyID"&"@staffID"> <td><xsl:value-of select="." /></td>
</xsl:template>
Correct Answer:
Verified
Q64: The _ attribute of the output element
Q65: In a(n) _ transformation, a server receives
Q66: The _ attribute of the output element
Q67: Jeremy has been using XML to organize
Q68: The result of the transformation of the
Q70: The _ document contains the data that will
Q71: Jeremy has been using XML to organize
Q72: One of the functions of XPath is
Q73: The _ language, which was introduced by
Q74: Jeremy has been using XML to organize
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents