xsl:processing-instruction
Creates a processing instruction in the result tree.
<xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="style.xsl"</xsl:processing-instruction>The name is the PI target; the body (or select) provides the data part. The name xml (case-insensitive) is reserved.
Attributes
| Attribute | Description |
|---|---|
name |
PI target as an AVT. Required. |
select |
XPath expression for the data. |
Example
<xsl:processing-instruction name="xml-stylesheet">
<xsl:text>type="text/xsl" href="</xsl:text>
<xsl:value-of select="$stylesheet"/>
<xsl:text>"</xsl:text>
</xsl:processing-instruction>