XSLT <xsl: processing-instruction> element
Definition and Usage
<Xsl: processing-instruction> element can write to output a processing instruction, which generated processing instruction node.
grammar
<xsl:processing-instruction
name="process-name">
<!-- Content:template -->
</xsl:processing-instruction>
name="process-name">
<!-- Content:template -->
</xsl:processing-instruction>
Attributes
属性 | 值 | 描述 |
---|---|---|
name | process-name | 必需。规定处理指令的名称。 |
Example 1
Code:
<xsl:processing-instruction name="xml-stylesheet">
href="style.css" type="text/css"
</xsl:processing-instruction>
href="style.css" type="text/css"
</xsl:processing-instruction>
Create a label:
<?xml-stylesheet href="style.css" type="text/css"?>
Complete XSLT Element Reference Manual