Do you know all the possible XSLT elements you can use in XSLT (XSL Transformation) for your Workday Integration?
Writing XSLT for Workday Integration file transformation is easy. You have to know which XSLT elements to use and when.
In this article, we will provide you a list of possible XSLT elements and respective high-level descriptions. Click on the XSLT element name to find out syntax and example.
| XSL Element Name | XSL Element Description |
|---|---|
| xsl:stylesheet or xsl:transform | The <xsl:stylesheet> and the <xsl:transform> both are identical. you can use anyone in your XSLT. It is a required element in the XSL transformation. In this element, you can define all the namespace that you would like to use within the XSLT transformation. |
| xsl:output | XSLT <xsl:output> element helps to define property of output document produce by XSL transformation. This element is optional within and if it’s not defined then by default output format will be XML. |
| xsl:templates | XSLT <xsl:templates> element helps to define property of output document produce by XSL transformation. This element is optional within and if it’s not defined then by default output format will be XML. |
| xsl:apply-templates | XSLT <xsl:apply-templates> element allows you to apply specific template rules for the selected node. |
| xsl:call-template | XSLT <xsl:call-template> element allows you to call specific template. |
| xsl:for-each | XSLT <xsl:for-each> element allows to loop through selected node-set. |
| xsl:value-of | XSLT <xsl:value-of> element allows to print/write data to an output document. In XSLT <xsl:value-of> element can occur more than once but <xsl:value-of> element can only have one select attribute. |
| xsl:if | XSLT <xsl:if> element allows evaluating condition which returns a boolean result to determine if template rule should be applied or not. |
| xsl:choose | XSLT <xsl:choose> element allows to evaluate multiple condition apply different template rule depending on condition met. <xsl:choose> element must have one or more <xsl:when> and contain have only one optional <xsl:otherwise> element. |
| xsl:when | <xsl:when> element allows evaluating condition which returns a boolean result to determine if template/transformation rule should be applied or not. <xsl:when> element should appear within <xsl:choose> in order that needs to be evaluated, if more than one <xsl:when> condition satisfied then first occurrence template rules will apply. |
| xsl:otherwise | <xsl:otherwise> element allow to apply specific template rules if none of the test conditions in any of xsl:when element is satisfied. If there is no <xsl:otherwise> element in <xsl:choose> then the <xsl:choose> element is exited. |
| xsl:sort | XSLT <xsl:sort> element allows to loop through selected node-set. |
| xsl:with-param | XSLT <xsl:with-param> element allows set parameter to be passed to template. <xsl:with-param> can appear within an <xsl:apply-templates> or an <xsl:call-template> element. |
| xsl:param | XSLT <xsl:param> element allows to declare a local or global parameter and define parameter name and default value. The default value will be used only if no other value is provided when the template is called. |
| xsl:variable | XSLT <xsl:variable> element allows to declare a local or global variable and define variable name and value. If the variable is declared at a top-level element to the stylesheet then the variable scope is global and it can be accessed throughout the document. if a variable is defined within a template or for each then variable scope is local and only accessible only within declaring template or for each. Variable can be accessed using $variablename. |