Exam Workday-Pro-Integrations Topic 2 Question 27 Discussion

Actual exam question for Workday's Workday-Pro-Integrations exam
Question #: 27
Topic #: 2
The following XML code was generated through a RaaS that will be used in an EIB.
What XSLT code snippet will output the number of dependents for each employee if a wd:Dependents_Group exists and output "This employee has 0 Dependents" if the wd:Dependents_Group does not exist?

Suggested Answer: C Vote an answer

The correct XSLT structure for conditional branching is xsl:choose, with one or more xsl:when conditions and an optional xsl:otherwise fallback. In this scenario, the transformation must test whether wd:
Dependents_Group exists. If it exists, the code counts the number of dependent group nodes by using count (wd:Dependents_Group) and appends the word "Dependents." If it does not exist, the fallback text must be output. Option C is the only valid structure because xsl:otherwise is correctly nested inside xsl:choose and does not incorrectly include a test attribute. Options A and B misuse xsl:otherwise, and option D incorrectly places xsl:if inside xsl:choose instead of using xsl:when.

by Jo at Oct 04, 2026, 06:41 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10