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