XSLT <xsl:processing-instruction>Element


XSLT 元素参考手册Complete XSLT Element Reference

Definition and Usage

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


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

Code:

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

Creates the tag:

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


XSLT 元素参考手册Complete XSLT Element Reference Other Extensions