apply-character-map — Applies an XSLT character map
<xsl:template name="apply-character-map"> <xsl:param name="content"/> <xsl:param name="map.contents"/> ... </xsl:template>
This template applies an XSLT character map; that is, it causes certain
individual characters to be substituted with strings of one
or more characters. It is useful mainly for replacing
multiple “special” characters or symbols in the same target
content. It uses the value of
map.contents to do substitution on
content, and then returns the
modified contents.
This template is a very slightly modified version of
Jeni Tennison’s replace_strings
template in the multiple string replacements section of Dave Pawson’s
XSLT FAQ.
The apply-string-subst-map
template is essentially the same template as the
apply-character-map template; the
only difference is that in the map that
apply-string-subst-map expects, oldstring and newstring attributes are used
instead of character and string attributes.