---
title: <xsl:processing-instruction>
slug: Web/XSLT/Element/processing-instruction
tags:
  - Element
  - Reference
  - XSLT
  - processing-instruction
---
{{ XsltRef() }}

The `<xsl:processing-instruction>` element writes a processing instruction to the output document.

### Syntax

`<xsl:processing-instruction name=NAME> TEMPLATE </xsl:processing-instruction>`

### Required Attributes

- `name`
  - : Specifies the name of this processing instruction.

### Optional Attributes

None.

### Type

Instruction, appears within a template.

### Defined

XSLT, section 7.3

### Gecko support

Supported.
