I10-002 Free Dumps Study Materials
Question 1: Push the Exhibit Button to load the referenced "XML document".
[XML Document]
<root><data>lmnop</data></root>
Assume 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]
<ZZZ><YYY>lmnop</YYY></ZZZ>
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>
Correct Answer: A