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 4 Question 79 Discussion

Push the Exhibit Button to load the referenced "XML Document".Assume that the character "3" is obtained from the "XML document". Select which XSLT style sheet correctly performs the transformation. (Multiple answers possible. Select two.)
B) <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:template match= ' / ' > <xsl:apply-templates select= ' //data[(attribute::x='1') and (text()='3')] ' /> </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= ' //data[x='1'][y='2'] ' /> </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= ' //data[self='3'] ' /> </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= ' //data[self::*='3'] ' /> </xsl:template> </xsl:stylesheet>

XML I10-002 Exam - Topic 4 Question 79 Discussion

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

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

Assume that the character "3" is obtained from the "XML document". Select which XSLT style sheet correctly performs the transformation. (Multiple answers possible. Select two.)

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Amira
6 months ago
C is definitely not correct, it doesn't match the criteria.
upvoted 0 times
...
Noel
6 months ago
Wait, D looks interesting too, could it work?
upvoted 0 times
...
Ariel
7 months ago
Not so sure about C, it seems off to me.
upvoted 0 times
...
Carmelina
7 months ago
Totally agree, B is definitely one of them!
upvoted 0 times
...
Shaun
7 months ago
I think B and C are the right choices.
upvoted 0 times
...
Bronwyn
7 months ago
I’m leaning towards option D, but I’m not sure if 'self::*' is the right way to reference the value. It feels a bit off.
upvoted 0 times
...
Barrett
8 months ago
I practiced a question similar to this, and I feel like option A might be too specific with its conditions.
upvoted 0 times
...
Tu
8 months ago
I'm not entirely sure, but I remember something about using 'self' in XSLT. Maybe option C is correct?
upvoted 0 times
...
Margret
8 months ago
I think option B looks familiar because it checks for both the attribute and the text value, which seems like a solid approach.
upvoted 0 times
...
Beckie
8 months ago
I'm feeling pretty confident about this one. The key is to use the right combination of attribute and text() checks to select the node with the value "3". I'll go with options B and D.
upvoted 0 times
...
Merissa
8 months ago
Okay, I think I've got this. Option B looks like it's selecting the correct node using the attribute and text() checks. And option D also seems to be on the right track with the self::* condition.
upvoted 0 times
...
Lashunda
8 months ago
Hmm, I'm a bit confused by the syntax here. I'll need to review my XSLT knowledge to make sure I understand how to properly select the node with the value "3".
upvoted 0 times
...
Gilma
8 months ago
This looks like a tricky XSLT question. I'll need to carefully read through the options and think about how to select the correct node based on the given criteria.
upvoted 0 times
...
Francesco
1 year ago
Wait, is the character '3' supposed to be the element name or the text content? This XSLT stuff can be so confusing sometimes!
upvoted 0 times
Julieta
11 months ago
D) I agree, it's probably the element name, so option C) might be the way to go.
upvoted 0 times
...
Dominque
12 months ago
C) I'm not sure, but I think it's the element name, so maybe option C) could work.
upvoted 0 times
...
Elke
12 months ago
B) I think it's the text content too, so option B) seems like the right choice.
upvoted 0 times
...
Christene
1 year ago
A) The character '3' is the text content, so option B) would be correct.
upvoted 0 times
...
...
Lemuel
1 year ago
Haha, I bet the exam writer is laughing at us trying to figure this out. I'll go with B and D, they look the most promising to me.
upvoted 0 times
...
Leanora
1 year ago
Hmm, this is a tricky one. I'm gonna go with Option D, using the self::* syntax to match the exact value '3'.
upvoted 0 times
...
Camellia
1 year ago
I think Option B is the winner here. Checking the attribute value and the text content seems like the right way to go.
upvoted 0 times
Micah
12 months ago
User 3
upvoted 0 times
...
Carmen
12 months ago
User 2
upvoted 0 times
...
Hannah
12 months ago
User 1
upvoted 0 times
...
...
Bernardo
1 year ago
I'm not sure, but I think option A could also be correct as it selects data where x is 1 and y is 2.
upvoted 0 times
...
Milly
1 year ago
Option B and D look good to me. The XPath expressions in those seem to match the requirements, but I'm not sure why the others don't work.
upvoted 0 times
Stevie
1 year ago
B: I agree, option D also seems to match the requirements.
upvoted 0 times
...
Jenelle
1 year ago
A: I think option B is correct because it uses the right XPath expression.
upvoted 0 times
...
...
Gilma
1 year ago
I agree with Elroy. Option B seems to be the right choice based on the requirements.
upvoted 0 times
...
Elroy
1 year ago
I think option B is correct because it checks for attribute x and text value 3.
upvoted 0 times
...

Save Cancel