1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>read-character-map</title><link rel="stylesheet" href="reference.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: ReferenceDocumentation"><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="Part3.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" title="read-character-map"><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" title="Synopsis"><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" title="Description"><a name="id1460748"></a><h2>Description</h2>
<p>The XSLT 2.0 specification describes <a class="ulink" 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" title="Parameters"><a name="id1460811"></a><h2>Parameters</h2>
<div class="variablelist"><dl><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">Part3.Formatting Object Table Reference</td></tr></table></div></body></html>
|