Latest web development tutorials

XSLT <xsl:processing-instruction> 元素

XSLT 元素參考手冊 完整的XSLT元素參考手冊

定義和用法

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


語法

<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>

創建標籤:

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


XSLT 元素參考手冊 完整的XSLT元素參考手冊