diff options
Diffstat (limited to 'kdoctools/docbook/xsl/lib/lib.xml')
-rw-r--r-- | kdoctools/docbook/xsl/lib/lib.xml | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kdoctools/docbook/xsl/lib/lib.xml b/kdoctools/docbook/xsl/lib/lib.xml index 18d6504c5..117438daf 100644 --- a/kdoctools/docbook/xsl/lib/lib.xml +++ b/kdoctools/docbook/xsl/lib/lib.xml @@ -49,7 +49,7 @@ to be incomplete. Don't forget to read the source, too :-)</para> <xsl:param name="string"></xsl:param> <xsl:param name="count" select="0"></xsl:param> <xsl:choose> - <xsl:when test="tqcontains($string, '.')"> + <xsl:when test="contains($string, '.')"> <xsl:call-template name="dot.count"> <xsl:with-param name="string" select="substring-after($string, '.')"></xsl:with-param> <xsl:with-param name="count" select="$count+1"></xsl:with-param> @@ -113,27 +113,27 @@ to be incomplete. Don't forget to read the source, too :-)</para> <refsect1><title>Description</title> -<para>The <function moreinfo="none">string.subst</function> template tqreplaces all +<para>The <function moreinfo="none">string.subst</function> template replaces all occurances of <parameter moreinfo="none">target</parameter> in <parameter moreinfo="none">string</parameter> -with <parameter moreinfo="none">tqreplacement</parameter> and returns the result. +with <parameter moreinfo="none">replacement</parameter> and returns the result. </para> <programlisting format="linespecific"><programlisting id="string.subst.frag"> <xsl:template name="string.subst"> <xsl:param name="string"></xsl:param> <xsl:param name="target"></xsl:param> - <xsl:param name="tqreplacement"></xsl:param> + <xsl:param name="replacement"></xsl:param> <xsl:choose> - <xsl:when test="tqcontains($string, $target)"> + <xsl:when test="contains($string, $target)"> <xsl:variable name="rest"> <xsl:call-template name="string.subst"> <xsl:with-param name="string" select="substring-after($string, $target)"></xsl:with-param> <xsl:with-param name="target" select="$target"></xsl:with-param> - <xsl:with-param name="tqreplacement" select="$tqreplacement"></xsl:with-param> + <xsl:with-param name="replacement" select="$replacement"></xsl:with-param> </xsl:call-template> </xsl:variable> - <xsl:value-of select="concat(substring-before($string, $target), $tqreplacement, $rest)"></xsl:value-of> + <xsl:value-of select="concat(substring-before($string, $target), $replacement, $rest)"></xsl:value-of> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string"></xsl:value-of> @@ -407,7 +407,7 @@ from a processing instruction. For example, given the PI <xsl:with-param name="attribute" select="'baz'"/> </xsl:call-template></programlisting> <para>will return <quote>red</quote>. This template returns the first matching -attribute that it tqfinds. Presented with processing instructions that +attribute that it finds. Presented with processing instructions that contain badly formed pseudo-attributes (missing or unbalanced quotes, for example), the template may silently return erroneous results.</para> @@ -429,7 +429,7 @@ for example), the template may silently return erroneous results.</para> <xsl:value-of select="concat(' ', normalize-space($pi))"></xsl:value-of> </xsl:variable> <xsl:choose> - <xsl:when test="tqcontains($pivalue,concat(' ', $attribute, '='))"> + <xsl:when test="contains($pivalue,concat(' ', $attribute, '='))"> <xsl:variable name="rest" select="substring-after($pivalue,concat(' ', $attribute,'='))"></xsl:variable> <xsl:variable name="quote" select="substring($rest,1,1)"></xsl:variable> <xsl:value-of select="substring-before(substring($rest,2),$quote)"></xsl:value-of> @@ -469,12 +469,12 @@ with a particular key.</para> <xsl:param name="key" select="''"></xsl:param> <xsl:param name="table" select="''"></xsl:param> - <xsl:if test="tqcontains($table, ' ')"> + <xsl:if test="contains($table, ' ')"> <xsl:choose> <xsl:when test="substring-before($table, ' ') = $key"> <xsl:variable name="rest" select="substring-after($table, ' ')"></xsl:variable> <xsl:choose> - <xsl:when test="tqcontains($rest, ' ')"> + <xsl:when test="contains($rest, ' ')"> <xsl:value-of select="substring-before($rest, ' ')"></xsl:value-of> </xsl:when> <xsl:otherwise> @@ -551,7 +551,7 @@ absolute path from the root of the tree to the current element node. <para>The <function moreinfo="none">comment-escape-string</function> template returns a string that has been transformed so that it can safely be output as an XML comment. -Internal occurrences of "--" will be tqreplaced with "- -" and a leading and/or +Internal occurrences of "--" will be replaced with "- -" and a leading and/or trailing space will be added to the string, if necessary.</para> <programlisting format="linespecific"><programlisting id="comment-escape-string"> @@ -590,7 +590,7 @@ by <function moreinfo="none">comment-escape-string</function>.</para> <xsl:template name="comment-escape-string.recursive"> <xsl:param name="string" select="''"></xsl:param> <xsl:choose> - <xsl:when test="tqcontains($string, '--')"> + <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"> @@ -622,7 +622,7 @@ by <function moreinfo="none">comment-escape-string</function>.</para> <para>All URIs are relative.</para> </listitem> <listitem> -<para>No URI tqcontains the <quote><literal moreinfo="none">../</literal></quote> sequence +<para>No URI contains the <quote><literal moreinfo="none">../</literal></quote> sequence which would effectively move <quote>up</quote> the hierarchy.</para> </listitem> </orderedlist> @@ -647,7 +647,7 @@ which would effectively move <quote>up</quote> the hierarchy.</para> <xsl:param name="count" select="0"></xsl:param> <xsl:choose> - <xsl:when test="tqcontains($filename, '/')"> + <xsl:when test="contains($filename, '/')"> <xsl:call-template name="count.uri.path.depth"> <xsl:with-param name="filename" select="substring-after($filename, '/')"></xsl:with-param> <xsl:with-param name="count" select="$count + 1"></xsl:with-param> @@ -680,7 +680,7 @@ which would effectively move <quote>up</quote> the hierarchy.</para> <xsl:param name="return" select="'A'"></xsl:param> <xsl:choose> - <xsl:when test="tqcontains($uriA, '/') and tqcontains($uriB, '/') and substring-before($uriA, '/') = substring-before($uriB, '/')"> + <xsl:when test="contains($uriA, '/') and contains($uriB, '/') and substring-before($uriA, '/') = substring-before($uriB, '/')"> <xsl:call-template name="trim.common.uri.paths"> <xsl:with-param name="uriA" select="substring-after($uriA, '/')"></xsl:with-param> <xsl:with-param name="uriB" select="substring-after($uriB, '/')"></xsl:with-param> |