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
Mila
10 hours ago
Option B looks correct to me.
upvoted 0 times
...
Chantell
6 days ago
I’m leaning towards option B too, but I’m a bit confused about the difference between that and A. Do both really work the same way?
upvoted 0 times
...
Cristy
11 days ago
I practiced a similar question, and I feel like option D is definitely not right because it seems to be trying to output raw XML instead of using xsl:element.
upvoted 0 times
...
Rosalyn
16 days ago
I'm not entirely sure, but I remember something about using xsl:element correctly. Was it option A or C that had the right syntax?
upvoted 0 times
...
Tamera
21 days ago
I think option B is correct because it uses curly braces for the element name, which should evaluate the value properly.
upvoted 0 times
...
Lashanda
26 days ago
Option D seems off to me; I don't recall needing to use xsl:text for this kind of transformation. It feels like it complicates things unnecessarily.
upvoted 0 times
...
Stefan
2 months 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
3 months 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
3 months 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