The < xsl:stylesheet > element is the root element in an XSLT document. It must include:
XSLT Version – This defines the XSLT specification version being used (e.g., version= " 1.0 " or version= " 2.0 " ).
Namespaces – XSLT operates within an XML namespace (xmlns:xsl= " http://www.w3.org/1999/XSL/Transform " ), which is required to define the transformation rules.
Breakdown of Answer Choices:
A. XSLT Version & Namespaces ✅ (Correct)
The < xsl:stylesheet > element requires both the XSLT version and the namespace declaration for proper execution.
Example:
xml
CopyEdit
< xsl:stylesheet version= " 1.0 " xmlns:xsl= " http://www.w3.org/1999/XSL/Transform " >
B. XSLT Version & Encoding ❌ (Incorrect)
Encoding (encoding= " UTF-8 " ) is a property of the XML declaration ( < ?xml version= " 1.0 " encoding= " UTF-8 " ? > ), not an attribute of < xsl:stylesheet > .
C. XML Version & Namespaces ❌ (Incorrect)
XML version ( < ?xml version= " 1.0 " ? > ) is part of the XML prolog, not an attribute of < xsl:stylesheet > .
D. Namespaces & Encoding ❌ (Incorrect)
Final Correct Syntax:
< xsl:stylesheet version= " 1.0 " xmlns:xsl= " http://www.w3.org/1999/XSL/Transform " >
This ensures that the XSLT file is processed correctly.
Workday Pro Integrations Study Guide References:
ReportWriterTraining.pdf – Chapter 9: Working With XML and XSLT covers XSLT basics, including the required attributes for < xsl:stylesheet > .
Workday_Advanced_Business_Process_part_2.pdf – Chapter 5: Web Services and Integrations details how Workday uses XSLT for transformations .