> For the complete documentation index, see [llms.txt](https://docs.workflowgen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.workflowgen.com/admin/8.7/xmltrans-workflow-application.md).

# XMLTRANS Workflow Application

## Overview

The **XMLTRANS** workflow application transforms any XML document to any kind of other format using an XSLT sheet.

## How it works

The WorkflowGen engine calls the XMLTRANS application with the context and the parameters. XMLTRANS uses the context and the parameters to get the following:

* An XML file to convert<br>
* An XSLT file to convert the XML file to any kind of output<br>
* A `RESULT` parameter to receive the output<br>
* A `RESULT_FILEEXT` parameter to know the extension of the output<br>
* A `RESULT_MIMETYPE` parameter to know the MIME type of the output

After XMLTRANS gathers this information, it’s ready to make the transformation, and then returns the context to WorkflowGen so that the workflow can continue.

## Possible execution errors

The following errors can occur during the execution of the transactions:

| **Code** | **Description**                                                                                          |
| -------: | -------------------------------------------------------------------------------------------------------- |
|      `1` | The `XML` required field is missing                                                                      |
|      `2` | The `RESULT` required field is missing                                                                   |
|      `3` | The `XSLT` required field is missing                                                                     |
|      `4` | The XML file is not a valid XML document                                                                 |
|      `5` | The XSLT file was not found                                                                              |
|      `6` | The XML file was not found                                                                               |
|      `7` | Cannot write the output to the `RESULT` parameter. Verify that the folder security settings are correct. |
|      `8` | Cannot read the XML file. Verify that the folder security settings are correct.                          |
|      `9` | The XSLT file is not a valid XSLT transformation style sheet                                             |
|     `10` | The received context was not valid                                                                       |
|     `11` | If `RESULT_FILEEXT` or `RESULT_MIMETYPE` is given, the other one must be given too                       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.workflowgen.com/admin/8.7/xmltrans-workflow-application.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
