XML I10-002 Exam - Topic 8 Question 98 Discussion
Push the Exhibit Button to load the referenced "XML document".[XML Document]lmnopAssume that the "XML Document" is changed to the "Results XML Document." Select which XSLT style sheet correctly performs the transformation. Note that the XSLT processor can output transformation results as a document.[Results XML Document]lmnop
A) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:include href='exam.xsl' />
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root ' />
</xsl:template>
<xsl:template match= ' root ' >
<AAA><BBB><xsl:value-of select= ' data ' /></BBB></AAA>
</xsl:template>
</xsl:stylesheet>
[exam.xsl]
<xsl:stylesheet version= ' 1.0 ' xmlns:xsl= ' http://www.w3.org/1999/XSL/Transform ' >
<xsl:template match= ' //root ' >
<ZZZ><YYY><xsl:value-of select= ' data ' /></YYY></ZZZ>
</xsl:template>
</xsl:stylesheet>
B) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:import href='exam.xsl' />
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root ' />
</xsl:template>
<xsl:template match= ' root ' >
<AAA><BBB><xsl:value-of select= ' data ' /></BBB></AAA>
</xsl:template>
</xsl:stylesheet>
[exam.xsl]
<xsl:stylesheet version= ' 1.0 ' xmlns:xsl= ' http://www.w3.org/1999/XSL/Transform ' >
<xsl:template match= ' //root ' >
<ZZZ><YYY><xsl:value-of select= ' data ' /></YYY></ZZZ>
</xsl:template>
</xsl:stylesheet>
C) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:include href='exam.xsl' />
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root ' />
</xsl:template>
<xsl:template match= ' root ' >
<AAA><BBB><xsl:value-of select= ' data ' /></BBB></AAA>
</xsl:template>
</xsl:stylesheet>
[exam.xsl]
<xsl:stylesheet version= ' 1.0 ' xmlns:xsl= ' http://www.w3.org/1999/XSL/Transform ' >
<xsl:template match= ' root ' >
<ZZZ><YYY><xsl:value-of select= ' data ' /></YYY></ZZZ>
</xsl:template>
</xsl:stylesheet>
D) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:import href='exam.xsl' />
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root ' />
</xsl:template>
<xsl:template match= ' root ' >
<AAA><BBB><xsl:value-of select= ' data ' /></BBB></AAA>
</xsl:template>
</xsl:stylesheet>
[exam.xsl]
<xsl:stylesheet version= ' 1.0 ' xmlns:xsl= ' http://www.w3.org/1999/XSL/Transform ' >
<xsl:template match= ' root ' >
<ZZZ><YYY><xsl:value-of select= ' data ' /></YYY></ZZZ>
</xsl:template>
</xsl:stylesheet>
Gregoria
2 months agoErnie
2 months agoEliz
2 months agoHubert
2 months agoErnie
2 months agoEliz
2 months agoKristeen
3 months agoAngelo
3 months agoShawna
3 months agoOra
4 months agoLashaunda
4 months agoJacinta
4 months agoFletcher
4 months agoAngelyn
4 months agoAvery
4 months agoLeota
5 months agoViola
5 months agoMelvin
5 months agoNoelia
5 months agoErick
5 months agoDortha
5 months agoAron
6 months agoFrancene
6 months agoShizue
6 months agoBok
7 months agoDaren
1 month agoRima
1 month agoCelia
1 month agoAnnabelle
6 months agoMeaghan
6 months ago