--- title: "Apply XSLT Stylesheet" slug: "apply-xslt-stylesheet" tags: ["XML", "xslt", "stylesheet"] updated: 2025-07-09T19:01:44Z published: 2025-07-09T19:01:44Z canonical: "documentation.decisions.com/apply-xslt-stylesheet" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Apply XSLT Stylesheet | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.0.0 | | **Location** | Data > XML | **Apply XSLT Stylesheet** allows users to apply an XSLT stylesheet to an XML document. The XSLT stylesheet contains templates that define how to transform an XML document into another format, such as HTML or PDF. --- ## Properties ### Inputs | Property | Description | Data Type | | --- | --- | --- | | XML Doc To Modify | XML document to apply the stylesheet | String/FileData | | XSLT Stylesheet | Stylesheet to apply to the XML document | String/FileData | ### Settings | Property | Description | Data Type | | --- | --- | --- | | Take Files As Input | Allows a user to choose a file for the input options | --- | | Output Must Be Valid XML | Specifies whether the output file follows valid XML standards | --- | ### Outputs | Property | Description | Data Type | | --- | --- | --- | | Done | | | Output | XML file | String | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1673622948578.png) --- ## Common Errors ### XSLT stylesheet format is invalid One standard error when applying an XSLT is that the stylesheet is invalid. Ensure that the XSLT stylesheet input is correct and is a valid XSLT file. ```cpp Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] XSLT stylesheet format is invalid at DecisionsFramework.Design.Flow.CoreSteps.XML.ApplyXSLTStylesheetStep.ApplyXslt(TextReader xmlDocReader, TextReader xsltReader) at DecisionsFramework.Design.Flow.CoreSteps.XML.ApplyXSLTStylesheetStep.Run(StepStartData data) at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) ``` --- Related Information Forum Posts: [XSLT Step Throwing Errors Applying Stylesheet](https://community.decisions.com/discussion/2673/xslt-step-throwing-errors-applying-stylesheet) ## Related - [XML Serialize](/xml-serialize.md) - [XML Deserialize](/xml-deserialize.md)