WebSphere Message Brokers
File: ac35450_
Writer: Catherine Tucker

Reference topic

This build: July 31, 2007 21:20:35

Adding keywords to XSL style sheets

Keywords can be embedded at any place in an XSL style sheet. The keyword can be added as an XML comment.

XML comments 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 style sheet:
<?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, 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 might 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
XSLTransform node
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:20:35

ac35450_ This topic's URL is: