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 8 Question 98 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]lmnop
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>

XML I10-002 Exam - Topic 8 Question 98 Discussion

Actual exam question for XML's I10-002 exam
Question #: 98
Topic #: 8
[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]

lmnop

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Gregoria
2 months ago
D has the right import. Good choice!
upvoted 0 times
...
Ernie
2 months ago
Exactly! B or D looks better.
upvoted 0 times
...
Eliz
2 months ago
It doesn't match the output structure.
upvoted 0 times
...
Hubert
2 months ago
Why A? It seems valid.
upvoted 0 times
...
Ernie
2 months ago
I think option A is wrong.
upvoted 0 times
...
Eliz
2 months ago
This question is tricky.
upvoted 0 times
...
Kristeen
3 months ago
Option B uses import, which is better for this case!
upvoted 0 times
...
Angelo
3 months ago
Wait, are we sure about that? Seems off to me.
upvoted 0 times
...
Shawna
3 months ago
I think option C is the right choice!
upvoted 0 times
...
Ora
4 months ago
Definitely option A is wrong, it doesn't match the output.
upvoted 0 times
...
Lashaunda
4 months ago
This is like a puzzle within a puzzle. I'm getting a headache just looking at it.
upvoted 0 times
...
Jacinta
4 months ago
Wait, is this a trick question? I better review the XSLT spec just to be sure.
upvoted 0 times
...
Fletcher
4 months ago
Hmm, I wonder if the order of the templates matters in this case. Better study up on that.
upvoted 0 times
...
Angelyn
4 months ago
The "include" and "import" options seem to be the key difference here. Gotta love those XML transformations!
upvoted 0 times
...
Avery
4 months ago
This XSLT transformation looks straightforward, but I'll have to double-check the details.
upvoted 0 times
...
Leota
5 months ago
I’m not confident, but I think D looks similar to what we did in class. The output seems right, but I’m unsure about the template matches.
upvoted 0 times
...
Viola
5 months ago
I’m leaning towards C, but I’m confused about the difference between including and importing stylesheets.
upvoted 0 times
...
Melvin
5 months ago
I remember practicing a question where we had to transform XML, and I feel like the output structure is key here.
upvoted 0 times
...
Noelia
5 months ago
This is a good test of my XSLT knowledge. I'll carefully trace the XML structure and the template matching in each option to determine the correct answer.
upvoted 0 times
...
Erick
5 months ago
I'm a bit confused by the "xsl:include" and "xsl:import" directives. I'll need to review the differences between them to make sure I select the right XSLT stylesheet.
upvoted 0 times
...
Dortha
5 months ago
The input XML has a single data element.
upvoted 0 times
...
Aron
6 months ago
I think the answer might be A, but I'm not entirely sure about the use of xsl:include versus xsl:import.
upvoted 0 times
...
Francene
6 months ago
Okay, I think I've got it. Option B uses the "xsl:import" directive to bring in the "exam.xsl" stylesheet, which has the right template to transform the XML.
upvoted 0 times
...
Shizue
6 months ago
Hmm, the key seems to be matching the correct template to the XML structure. I'll need to analyze each XSLT option and see which one best matches the "Results XML Document".
upvoted 0 times
...
Bok
7 months ago
This looks like a tricky XSLT question. I'll need to carefully read through the XML documents and the XSLT stylesheets to understand the expected transformation.
upvoted 0 times
Daren
1 month ago
I’ll compare the output structures to decide.
upvoted 0 times
...
Rima
1 month ago
I think I need to analyze each option closely.
upvoted 0 times
...
Celia
1 month ago
This is definitely tricky!
upvoted 0 times
...
Annabelle
6 months ago
I’m leaning towards option A or C.
upvoted 0 times
...
Meaghan
6 months ago
The transformation logic is key here.
upvoted 0 times
...
...

Save Cancel