Home >
Online Product Documentation >
Table of Contents >
xsl:processing-instruction
xsl:processing-instruction
Adds a processing instruction node to the result tree.
Format
Description
The XSLT processor interprets the
name
attribute as an attribute value template, and uses the resulting string as the target of the created processing instruction. The XSLT processor then instantiates the contents of
xsl:processing-instruction
to generate the remaining contents of the processing instruction.
Errors are reported under the following conditions:
- If the string that results from evaluating the
name
attribute is not both an
NCName
and a
PITarget
(see the XSLT Recommendation). Also, the value of the
name
attribute cannot be
xml
.
- If instantiation of the contents of the
xsl:processing-instruction
element creates anything other than characters or if the resulting string contains the substring
"?>"
.
Example
This instruction creates the following processing instruction in the result document: