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
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>comment-escape-string.recursive</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="generallibrary.html" title="General Library Templates"><link rel="prev" href="comment-escape-string.html" title="comment-escape-string"><link rel="next" href="trim.text.html" title="trim.text"><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">comment-escape-string.recursive</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="comment-escape-string.html">Prev</a></td><th width="60%" align="center">General Library Templates</th><td width="20%" align="right"><a accesskey="n" href="trim.text.html">Next</a></td></tr></table><hr></div><div class="refentry" title="comment-escape-string.recursive"><a name="comment-escape-string.recursive"></a><div class="titlepage"></div>
<div class="refnamediv"><h2>comment-escape-string.recursive</h2><p>
comment-escape-string.recursive
— Internal function used by comment-escape-string
</p></div>
<div class="refsect1" title="Description"><a name="id1456656"></a><h2>Description</h2>
<p>The <code class="function">comment-escape-string.recursive</code> template is used
by <code class="function">comment-escape-string</code>.</p>
<a name="comment-escape-string.recursive.frag"></a><pre class="programlisting">
<xsl:template name="comment-escape-string.recursive">
<xsl:param name="string" select="''"></xsl:param>
<xsl:choose>
<xsl:when test="contains($string, '--')">
<xsl:value-of select="substring-before($string, '--')"></xsl:value-of>
<xsl:value-of select="'- -'"></xsl:value-of>
<xsl:call-template name="comment-escape-string.recursive">
<xsl:with-param name="string" select="substring-after($string, '--')"></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"></xsl:value-of>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</pre>
</div>
</div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="comment-escape-string.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="generallibrary.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="trim.text.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">comment-escape-string</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">trim.text</td></tr></table></div></body></html>
|