Solved

Hue Is Developing an XSLT Style Sheet to Display Data

Question 36

Multiple Choice

    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>  
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:

verifed

Verified

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

Related Questions