Defines a set of characters, each of which should be
replaced by a string of characters. This allows you to put nonstandard
characters in the values of elements and attributes. An
<xsl:character-map> works much like an
place of the
disable-output-escaping attributes of
<xsl:value-of> defined in XSLT 1.0.
attribute is deprecated in XSLT 2.0.)
The name of this character map.
The space-separated names of any character maps included in this character map. As you would expect, it is a fatal error if a character map includes itself, directly or indirectly. It is also a fatal error if a character map attempts to include a character map that does not exist.
Zero or more
appears as a child of the
XSLT section 20, “Serialization.”
We’ll define a simple example that has a couple of useful
functions. First of all, we’ll create a character mapping that
replaces tab characters (
with two spaces; tab characters are often displayed as eight
characters wide, which can cause problems when displaying indented
code listings. We’ll also create a couple of graphics that should be
displayed in place of certain characters. Here’s the XML source we’ll
<?xml version="1.0" encoding="utf-8"?> ...