Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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>

XML I10-002 Exam - Topic 2 Question 104 Discussion

Actual exam question for XML's I10-002 exam
Question #: 104
Topic #: 2
[All I10-002 Questions]

Push the Exhibit Button to load the referenced "XML Document".

[XML Document]

lmnop

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]

Or

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Stefan
28 days ago
I practiced a similar question where the output was supposed to be an element. I feel like option A might be close, but I'm leaning towards B.
upvoted 0 times
...
Jannette
1 month ago
I'm not entirely sure, but I remember that using just a dot in the name attribute might not work as expected. Maybe option C is incorrect?
upvoted 0 times
...
Leah
1 month ago
I think option B is the right choice because it uses curly braces for the element name, which should correctly evaluate the value.
upvoted 0 times
...

Save Cancel