为 XSL 样式表添加关键字

关键字可以嵌入在 XSL 样式表的任何位置。 关键字可以作为 XML 注释添加,必须具有以下格式:
$MQSI keyword = value MQSI$
该示例显示如何向 XML 样式表添加一个具有值 Johnauthor 关键字:
<?xml version="1.0" encoding="UTF-8">
<!-- $MQSI author = John MQSI$ >
<xsl:stylesheet version="1.0"
xmlns:xsl=http://www.w3.org/1999/XSL/Transform>
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:value-of select="message"/>
</xsl:template>
</xsl:stylesheet>

配置管理器 没有 从该示例中抽出 version="1.0"。这是 因为值并未被 $MQSIMQSI$ 关键字绑定。

相关概念
消息流版本和关键字
查看可部署对象的版本和关键字信息
相关参考
对定义关键字的指导
声明 | 商标 | 下载 | 书库 | 支持 | 反馈
Copyright IBM Corporation 1999, 2006 最后一次更新时间:2006/08/14
ac35450_