XSLT <xsl:processing-instruction> 元素

定義和用法

<xsl:processing-instruction> 元素可向輸出寫一條處理指令,即生成處理指令節點。

語法

<xsl:processing-instruction
name="process-name">

屬性

屬性 描述
name process-name 必需。規定處理指令的名稱。

實例

例子 1

代碼:

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

創建標簽:

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