Join the discussion
Question 54/61
Refer to the following XML to answer the question below.

Within the template which matches on wd:Report_Entry, you would like to conditionally process the wd:
Education_Group elements by using an <xsl:apply-templates> element. What XPath syntax would be used for the select to iterate over only the wd:Education_Group elements where the Degree is an MBA?

Within the template which matches on wd:Report_Entry, you would like to conditionally process the wd:
Education_Group elements by using an <xsl:apply-templates> element. What XPath syntax would be used for the select to iterate over only the wd:Education_Group elements where the Degree is an MBA?
Correct Answer: A
In Workday integrations, XSLT is used to transform XML data, such as the output from a web service- enabled report or EIB, into a desired format for third-party systems. In this scenario, you need to write XSLT to process wd:Education_Group elements within a template matching wd:Report_Entry, using an <xsl:apply- templates> element to iterate only over wd:Education_Group elements where the wd:Degree is "MBA." The correct XPath syntax for the select attribute is critical to ensure accurate filtering.
Here's why option A is correct:
* XPath Syntax Explanation: In XPath, square brackets [ ] are used to specify predicates or conditions to filter elements. The condition wd:Degree='MBA' checks if the wd:Degree child element has the value "MBA." When applied to wd:Education_Group, the expression wd:Education_Group[wd:
Degree='MBA'] selects only those wd:Education_Group elements that contain a wd:Degree child element with the value "MBA."
* Context in XSLT: Within an <xsl:apply-templates> element in a template matching wd:Report_Entry, the select attribute uses XPath to specify which nodes to process. This syntax ensures that the template only applies to wd:Education_Group elements where the degree is "MBA," aligning with the requirement to conditionally process only those specific education groups.
* XML Structure Alignment: Based on the provided XML snippet, wd:Education_Group contains wd:
Education and wd:Degree child elements (e.g., <wd:Degree>MBA</wd:Degree>). The XPath wd:
Education_Group[wd:Degree='MBA'] correctly navigates to wd:Education_Group and filters based on the wd:Degree value, matching the structure and requirement.
Why not the other options?
* B. wd:Education_Group/wd:Degree='MBA': This is not a valid XPath expression for a predicate. It attempts to navigate to wd:Degree as a child but does not use square brackets [ ] to create a filtering condition. This would be interpreted as selecting wd:Degree elements under wd:Education_Group, but it wouldn't filter based on the value "MBA" correctly within an <xsl:apply-templates> context.
* C. wd:Report_Entry/wd:Education_Group/wd:Degree='MBA' 1:Degree='MBA': This is syntactically incorrect and unclear. It includes a malformed condition (1:Degree='MBA') and does not use proper XPath predicate syntax. It fails to filter wd:Education_Group elements based on wd:
Degree='MBA' and is not valid for use in select.
* D. wd:Report_Entry/wd:Education_Group[wd:Degree='MBA' 1:Degree='MBA']: This is also syntactically incorrect due to the inclusion of 1:Degree='MBA' within the predicate. The 1: prefix is not valid XPath syntax and introduces an error. The correct predicate should only be wd:Degree='MBA' to filter the wd:Education_Group elements.
To implement this in XSLT:
* Within your template matching wd:Report_Entry, you would write an <xsl:apply-templates> element with the select attribute set to wd:Education_Group[wd:Degree='MBA']. This ensures that only wd:
Education_Group elements with a wd:Degree value of "MBA" are processed by the corresponding templates, effectively filtering out other degrees (e.g., B.S., B.A.) in the transformation.
This approach ensures the XSLT transformation aligns with Workday's XML structure and integration requirements for processing education data in a report output.
References:
* Workday Pro Integrations Study Guide: Section on "XSLT Transformations for Workday Integrations"
- Details the use of XPath in XSLT for filtering XML elements, including predicates for conditional processing based on child element values.
* Workday EIB and Web Services Guide: Chapter on "XML and XSLT for Report Data" - Explains the structure of Workday XML (e.g., wd:Education_Group, wd:Degree) and how to use XPath to navigate and filter data.
* Workday Reporting and Analytics Guide: Section on "Web Service-Enabled Reports" - Covers integrating report outputs with XSLT for transformations, including examples of filtering elements based on specific values like degree types.
Here's why option A is correct:
* XPath Syntax Explanation: In XPath, square brackets [ ] are used to specify predicates or conditions to filter elements. The condition wd:Degree='MBA' checks if the wd:Degree child element has the value "MBA." When applied to wd:Education_Group, the expression wd:Education_Group[wd:
Degree='MBA'] selects only those wd:Education_Group elements that contain a wd:Degree child element with the value "MBA."
* Context in XSLT: Within an <xsl:apply-templates> element in a template matching wd:Report_Entry, the select attribute uses XPath to specify which nodes to process. This syntax ensures that the template only applies to wd:Education_Group elements where the degree is "MBA," aligning with the requirement to conditionally process only those specific education groups.
* XML Structure Alignment: Based on the provided XML snippet, wd:Education_Group contains wd:
Education and wd:Degree child elements (e.g., <wd:Degree>MBA</wd:Degree>). The XPath wd:
Education_Group[wd:Degree='MBA'] correctly navigates to wd:Education_Group and filters based on the wd:Degree value, matching the structure and requirement.
Why not the other options?
* B. wd:Education_Group/wd:Degree='MBA': This is not a valid XPath expression for a predicate. It attempts to navigate to wd:Degree as a child but does not use square brackets [ ] to create a filtering condition. This would be interpreted as selecting wd:Degree elements under wd:Education_Group, but it wouldn't filter based on the value "MBA" correctly within an <xsl:apply-templates> context.
* C. wd:Report_Entry/wd:Education_Group/wd:Degree='MBA' 1:Degree='MBA': This is syntactically incorrect and unclear. It includes a malformed condition (1:Degree='MBA') and does not use proper XPath predicate syntax. It fails to filter wd:Education_Group elements based on wd:
Degree='MBA' and is not valid for use in select.
* D. wd:Report_Entry/wd:Education_Group[wd:Degree='MBA' 1:Degree='MBA']: This is also syntactically incorrect due to the inclusion of 1:Degree='MBA' within the predicate. The 1: prefix is not valid XPath syntax and introduces an error. The correct predicate should only be wd:Degree='MBA' to filter the wd:Education_Group elements.
To implement this in XSLT:
* Within your template matching wd:Report_Entry, you would write an <xsl:apply-templates> element with the select attribute set to wd:Education_Group[wd:Degree='MBA']. This ensures that only wd:
Education_Group elements with a wd:Degree value of "MBA" are processed by the corresponding templates, effectively filtering out other degrees (e.g., B.S., B.A.) in the transformation.
This approach ensures the XSLT transformation aligns with Workday's XML structure and integration requirements for processing education data in a report output.
References:
* Workday Pro Integrations Study Guide: Section on "XSLT Transformations for Workday Integrations"
- Details the use of XPath in XSLT for filtering XML elements, including predicates for conditional processing based on child element values.
* Workday EIB and Web Services Guide: Chapter on "XML and XSLT for Report Data" - Explains the structure of Workday XML (e.g., wd:Education_Group, wd:Degree) and how to use XPath to navigate and filter data.
* Workday Reporting and Analytics Guide: Section on "Web Service-Enabled Reports" - Covers integrating report outputs with XSLT for transformations, including examples of filtering elements based on specific values like degree types.
Add Comments
- Other Question (61q)
- Q1. When creating an ISU, what should you do to ensure the user only authenticates via web ser...
- Q2. What is the purpose of granting an ISU modify access to the Integration Event domain via a...
- Q3. Refer to the following scenario to answer the question below. You have been asked to build...
- Q4. You need the integration file to generate the date format in the form of "31/07/2025" form...
- Q5. Refer to the following XML to answer the question below. Refer to the following XML to ans...
- Q6. What are the two valid data source options for an Outbound EIB?...
- Q7. Refer to the following scenario to answer the question below. You have configured a Core C...
- Q8. As of May 1, 2024 Brian Hill's annual salary is $60,000.00. On May 13, 2024 Brian Hill rec...
- Q9. You are creating an outbound connector using the Core Connector: Job Postings template. Th...
- Q10. What is the workflow to chain a Document Transformation system to a Connector integration ...
- Q11. What is the purpose of the <xsl:template> element?...
- Q12. You are configuring an EIB that uses a custom report as its data source. When attempting t...
- Q13. Refer to the following XML to answer the question below. (Exhibit) You need the integratio...
- Q14. A vendor needs an EIB that uses a custom report to output a list of new hires and their ch...
- Q15. What is the task used to upload a new XSLT file for a pre-existing document transformation...
- Q16. Refer to the following XML to answer the question below. Refer to the following XML to ans...
- Q17. You need the integration file to generate the date format in the form of "31/07/2025" form...
- Q18. How does an XSLT processor identify the specific nodes in an XML document to which a parti...
- Q19. Refer to the following scenario to answer the question below. Your integration has the fol...
- Q20. A vendor needs to create a Date Difference calculated field. However, the two dates needed...
- Q21. You have a population of workers who have put multiple names in their Legal Name - First N...
- Q22. What XSL component is required to execute valid transformation instructions in the XSLT co...
- Q23. Refer to the following scenario to answer the question below. You need to configure a Core...
- Q24. You have been asked to create an integration using the Core Connector: Worker with DIS tem...
- Q25. What is the relationship between the Integration System User (ISU), Integration System Sec...
- Q26. You are creating a connector based integration where all fields are provided by the templa...
- Q27. You need to create a report that includes data from multiple business objects. For a super...
- Q28. This is the XML file generated from a Core Connector; Positions integration. (Exhibit) Whe...
- Q29. Refer to the following XML and example transformed output to answer the question below. (E...
- Q30. When creating an ISU, what should you do to ensure the user only authenticates via web ser...
- Q31. What task is needed to build a sequence generator for an EIB integration?...
- Q32. Refer to the scenario. You are implementing a Core Connector: Worker integration to send e...
- Q33. What is the relationship between the Integration System User (ISU), Integration System Sec...
- Q34. Refer to the following XML and example transformed output to answer the question below. (E...
- Q35. Your manager has asked for a value on their dashboard for how many days away the birthdays...
- Q36. After configuring domain security policies, what task must you run to ensure the most rece...
- Q37. Refer to the scenario. You are configuring a Core Connector: Worker integration with the D...
- Q38. Refer to the scenario. You are configuring a Core Connector: Worker integration to extract...
- Q39. What is the workflow to upload an XSLT file for a brand new Document Transformation system...
- Q40. You have been asked to refine a report which outputs one row per worker and is being used ...
- Q41. What is the workflow to upload an XSLT file for a brand new Document Transformation system...
- Q42. Refer to the following XML and example transformed output to answer the question below. (E...
- Q43. This is the XML file generated from a Core Connector; Positions integration. (Exhibit) Whe...
- Q44. You need to filter a custom report to only show workers that have been terminated after a ...
- Q45. What is the workflow to chain a Document Transformation system to a Connector integration ...
- Q46. Which three features must all XSLT files contain to be considered valid?...
- Q47. Refer to the following scenario to answer the question below. You have been asked to build...
- Q48. Refer to the following XML to answer the question below. (Exhibit) You are an integration ...
- Q49. Your manager has asked for a value on their dashboard for how many days away the birthdays...
- Q50. A calculated field used as a field override in a Connector is not appearing in the output....
- Q51. Which features must all XSLT files contain to be considered valid?...
- Q52. Refer to the following scenario to answer the question below. You need to configure a Core...
- Q53. Your manager has asked for a value on their dashboard for how many days away the birthdays...
- Q54. Refer to the following XML to answer the question below. (Exhibit) Within the template whi...
- Q55. Which three features must all XSLT files contain to be considered valid?...
- Q56. You have configured a filename sequence generator for a connector integration. The vendor ...
- Q57. What is the relationship between an ISU (Integration System User) and an ISSG (Integration...
- Q58. A vendor needs an EIB that uses a custom report to output a list of new hires and their ch...
- Q59. How many integration systems can an ISU be assigned to concurrently?...
- Q60. What is the purpose of the <xsl:template> element?...
- Q61. Refer to the following scenario to answer the question below. You have configured a Core C...
[×]
Download PDF File
Enter your email address to download Workday.Workday-Pro-Integrations.v2026-03-13.q61.pdf
