XSLT <xsl:processing-instruction>
❮ Complete XSLT Element Reference
定義和用法
The <xsl:processing-instruction> 元素向輸出寫入一個處理指令。
語法
<xsl:processing-instruction
name="process-name">
<!-- Content:template -->
</xsl:processing-instruction>
屬性
Attribute | 值 | 描述 |
---|---|---|
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"?>
❮ Complete XSLT Element Reference