# 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
