C5050-408 Free Dumps Study Materials
Question 7: The following is part of a HTTP adapter invocation result.
{
"college":{
"class":{
"description": "Class object"
"student": {
"description": "Students marks details",
"title":Top Stories"
},
"studentmarks": [
{
"name": "Mirjana Lucic-Baroni.",
"marks": "90",
"level": "Level one"
}
{
"name": "Rose Way.",
"marks": "87",
"level": "null"
}
]
}
} }
An application developer needs to send only the 'name' and 'marks' information to a mobile
application using the adapter xsl file.
Which xsl file code snippet will enable the application developer to achieve this?
A. {
'Items': [
<xsl:for-each select="//college">
{
'name: '<xsl:value-of select="college.name"/>',
'marks': '<xsl:value-of select="college.marks"/>',
},
</xsl:for-each>
]
}
B. {
'Items': [
<xsl:for-each select="//studentmarks">
{
'name': '<xsl:value-of select="name"/>',
'marks': '<xsl:value-of select="marks"/>',
},
</xsl:for-each>
]
}
C. {
'Items': [
<xsl:for-each select="//item">
{
'name': '<xsl:value-of select="name"/>',
'marks': '<xsl:value-of select="marks"/>',
},
</xsl:for-each>
]
}
D. {
'Items': [
<xsl:for-each select="//student">
{
'name': '<xsl:value-of select="student.name"/>',
'marks': '<xsl:value-of select="student.marks"/>',
},
</xsl:for-each>
]
}
Correct Answer: B
Explanation:
For each studentmarks select the the name and marks.