XSLT <xsl:processing-instruction> Element
Definition and Usage
The <xsl:processing-instruction> element can write a processing instruction to the output, that is, generate a processing instruction node.
Syntax
<xsl:processing-instruction name="process-name">
Attribute
Attribute | Value | Description |
---|---|---|
name | process-name | Required. Specifies the name of the processing instruction. |
Instance
Example 1
Code:
<xsl:processing-instruction name="xml-stylesheet"> href="style.css" type="text/css" </xsl:processing-instruction>
Create Tag:
<?xml-stylesheet href="style.css" type="text/css"?>