XML I10-002 Exam - Topic 2 Question 104 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]Or
B) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root/data ' />
</xsl:template>
<xsl:template match= ' data ' >
<xsl:element name='{ . }'/>
</xsl:template>
</xsl:stylesheet>
A) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root/data ' />
</xsl:template>
<xsl:template match= ' data ' >
<xsl:element name='<xsl:value-of select='.'/>'/>
</xsl:template>
</xsl:stylesheet>
C) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root/data ' />
</xsl:template>
<xsl:template match= ' data ' >
<xsl:element name='.'/>
</xsl:template>
</xsl:stylesheet>
D) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match= ' / ' >
<xsl:apply-templates select= ' root/data ' />
</xsl:template>
<xsl:template match= ' data ' >
<xsl:text disable-output-escaping='no'><</xsl:text>
<xsl:value-of select='.'/>
<xsl:text disable-output-escaping='no'>/></xsl:text>
</xsl:template>
</xsl:stylesheet>
Stefan
28 days agoJannette
1 month agoLeah
1 month ago