THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

XSLT <xsl:processing-instruction> Element


XSLT Element Reference Complete XSLT Element Reference

Definition and Usage

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


Syntax

<xsl:processing-instruction
name="process-name">

  <!-- Content:template -->

</xsl:processing-instruction>

Attributes

Attribute Value Description
name process-name Required. Specifies the name of the processing instruction

Example 1

This code:

<xsl:processing-instruction name="xml-stylesheet">
href="style.css" type="text/css"
</xsl:processing-instruction>

Creates this tag:

<?xml-stylesheet href="style.css" type="text/css"?>

XSLT Element Reference Complete XSLT Element Reference