XSLT <xsl:processing-instruction> 元素

定義和用法
<xsl:processing-instruction> 元素可向輸出寫一條處理指令,即生成處理指令節點。
語法
<xsl:processing-instruction
name="process-name">
<!-- Content:template -->
</xsl:processing-instruction>
name="process-name">
<!-- Content:template -->
</xsl:processing-instruction>
屬性
屬性 | 值 | 描述 |
---|---|---|
name | process-name | 必需。規定處理指令的名稱。 |
實例 1
代碼:
<xsl:processing-instruction name="xml-stylesheet">
href="style.css" type="text/css"
</xsl:processing-instruction>
href="style.css" type="text/css"
</xsl:processing-instruction>
創建標籤:
<?xml-stylesheet href="style.css" type="text/css"?>
