# XSLT specific intention actions

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

The XSLT Support comes with a few intentions that can be useful for XSLT development.

## Before you start

Install and enable the XPathView + XSLT plugin on the Settings | Plugins page, as described in [Installing plugins from
JetBrains Marketplace](managing-plugins.html#install_plugin_from_repo).

## Intention to convert xsl:if to xsl:choose

This is useful if it turns out that a simple if-branch isn't enough in a certain situation and an else-branch is required. When placing the caret at the start tag of the `xsl:if`, the intention shows up and converts the code fragment into an `xsl:choose`, preserving the original `xsl:if` as an `xsl:when` block and adding an `xsl:otherwise` block.

| Before | After |
| --- | --- |
|    ![Convert xsl:if to xsl:choose](https://resources.jetbrains.com/help/img/idea/2026.3/convert-if-to-choose.png)  |    ![Convert xsl:if to xsl:choose Result](https://resources.jetbrains.com/help/img/idea/2026.3/convert-if-to-choose-after.png)  |

## Intention to add optional parameters

This intention can be used to pass a value for an optional parameter in a template-call. It will insert the appropriate `xsl:with-param` tag and show a lookup list for all parameters that aren't already passed to the template.

| Before | After |
| --- | --- |
|    ![Add optional Argument(s)](https://resources.jetbrains.com/help/img/idea/2026.3/add-optional-arguments.png)  |    ![Add optional Argument(s)](https://resources.jetbrains.com/help/img/idea/2026.3/add-optional-arguments-result.png)  |

