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
Lilli
4 days ago
It uses curly braces for dynamic naming.
upvoted 0 times
...
Whitney
9 days ago
Why B?
upvoted 0 times
...
Lilli
15 days ago
I think option B is correct.
upvoted 0 times
...
Telma
20 days ago
This question is tricky.
upvoted 0 times
...
Kerrie
25 days ago
Why would you use disable-output-escaping? That's surprising!
upvoted 0 times
...
Vincenza
1 month ago
Wait, D seems really off.
upvoted 0 times
...
Luz
1 month ago
I'm leaning towards C, but not sure.
upvoted 0 times
...
Pearly
1 month ago
I think A is the right choice.
upvoted 0 times
...
Mila
2 months ago
Option B looks correct to me.
upvoted 0 times
...
Chantell
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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
4 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
4 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
4 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