Exam Workday-Pro-Integrations Topic 1 Question 12 Discussion

Actual exam question for Workday's Workday-Pro-Integrations exam
Question #: 12
Topic #: 1
The following XML code was generated through a RaaS that will be used in an EIB.


Within a template that matches on wd:Report_Entry, what XPath expression do you use to select the value of the Relationship_ID element?

Suggested Answer: D Vote an answer

The XML fragment shown follows the Report#as#a#Service (RaaS) structure typical for Workday custom report output:
<wd:Report_Entry>
<wd:Dependents_Group>
<wd:Name>Megan McNeil</wd:Name>
<wd:Age>25</wd:Age>
<wd:Relationship wd:Descriptor="Child">
<wd:ID wd:type="WID">7507df6a99664ce7bc0cb902cf370543</wd:ID>
<wd:ID wd:type="Relationship_ID">Child</wd:ID>
</wd:Relationship>
</wd:Dependents_Group>
</wd:Report_Entry>
Inside each <wd:Report_Entry>, the target value Relationship_ID resides under:
wd:Dependents_Group
# wd:Relationship
# wd:ID (wd:type="Relationship_ID")
When writing the template:
<xsl:template match="wd:Report_Entry">
XSLT uses a relative XPath (starting with ./) to navigate from the matched node.
Therefore, the correct XPath should be:
/wd:Dependents_Group/wd:Relationship/wd:ID
That expression selects the wd:ID element so you can then test/extract where wd:type="Relationship_ID".
Why the other options are incorrect:
Option
Why Incorrect
A & B
These use an equality test incorrectly inside the XPath expression - they would not return the node value and are syntactically invalid for value extraction.
C
Missing ./ - would still work in many cases, but Workday XSLT best practice is to use relative paths when inside a match.
Workday Pro Integration guidance for RaaS/XSLT stresses:
Always scope node selection relative to the current context tree using prefix#qualified XPath expressions.
Reference:Workday Pro: Integrations - XSLT for Workday XML (Namespaces, Context Node, Relationship ID Extraction)W3C XSLT Specification - Relative XPath from context node

by Mike at Nov 15, 2025, 09:47 PM

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