Skip to main content

XSLT <xsl:processing-instruction>

XSLT <xsl:processing-instruction>

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

AttributeValueRequired/OptionalDescription
nameprocess-nameRequiredSpecifies the name of the processing instruction

Example

With the following XML code

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

we can create this tag

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