<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>read-character-map</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.2"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference Documentation"><link rel="up" href="charmap.html" title="Common » Character-Map Template Reference"><link rel="prev" href="template.apply-character-map.html" title="apply-character-map"><link rel="next" href="../fo/table-templates.html" title="Part 3. Formatting Object Table Reference"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">read-character-map</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="template.apply-character-map.html">Prev</a> </td><th width="60%" align="center">Common » Character-Map Template Reference</th><td width="20%" align="right"> <a accesskey="n" href="../fo/table-templates.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="template.read-character-map"></a><div class="titlepage"></div><div class="refnamediv"><h2>read-character-map</h2><p>read-character-map — Reads in all or part of an XSLT character map</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis"><xsl:template name="read-character-map"> <xsl:param name="use.subset"/> <xsl:param name="subset.profile"/> <xsl:param name="uri"/> ... </xsl:template></pre></div><div class="refsect1"><a name="d0e35330"></a><h2>Description</h2><p>The XSLT 2.0 specification describes <a class="link" href="http://www.w3.org/TR/xslt20/#character-maps" target="_top">character maps</a> and explains how they may be used to allow a specific character appearing in a text or attribute node in a final result tree to be substituted by a specified string of characters during serialization. The <code class="function">read-character-map</code> template provides a means for reading and using character maps with XSLT 1.0-based tools.</p><p>This template reads the character-map contents from <em class="parameter"><code>uri</code></em> (in full or in part, depending on the value of the <em class="parameter"><code>use.subset</code></em> parameter), then passes those contents to the <code class="function">apply-character-map</code> template, along with <em class="parameter"><code>content</code></em>, the data on which to perform the character substitution.</p><p>Using the character map “in part” means that it uses only those <code class="sgmltag-element">output-character</code> elements that match the XPath expression given in the value of the <em class="parameter"><code>subset.profile</code></em> parameter. The current implementation of that capability here relies on the <code class="function">evaluate</code> extension XSLT function.</p></div><div class="refsect1"><a name="d0e35366"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">use.subset</span></dt><dd><p>Specifies whether to use a subset of the character map instead of the whole map; boolean <code class="literal">0</code> or <code class="literal">1</code></p></dd><dt><span class="term">subset.profile</span></dt><dd><p>XPath expression that specifies what subset of the character map to use</p></dd><dt><span class="term">uri</span></dt><dd><p>URI for a character map</p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="template.apply-character-map.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="charmap.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="../fo/table-templates.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">apply-character-map </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> Part 3. Formatting Object Table Reference</td></tr></table></div></body></html>