Adding keywords to XSL stylesheets

Keywords can be embedded at any place in an XSL stylesheet. The keyword can be added as an XML comment and must have the following format:
$MQSI keyword = value MQSI$
The example shows how to add the keyword of author with the value John to an XML stylesheet:
<?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>

The Configuration Manager does not extract version="1.0" from this example. This is because the value is not bounded by the $MQSI and MQSI$ keywords.

Restrictions within keywords

Do not use the following characters within keywords because they cause unpredictable behavior:
^$.|\<>?+*=&[]
You can use these characters in the values that are associated with keywords; for example:
  • $MQSI RCSVER=$id$ MQSI$ is acceptable
  • $MQSI $name=Fred MQSI$ is not acceptable
Related concepts
Message flow version and keywords
Viewing version, keyword, comment, and path information for deployable objects
Related reference
Guidance for defining keywords