diff options
Diffstat (limited to 'kdoctools/docbook/xsl/lib')
-rw-r--r-- | kdoctools/docbook/xsl/lib/lib.xml | 32 | ||||
-rw-r--r-- | kdoctools/docbook/xsl/lib/lib.xsl | 22 | ||||
-rw-r--r-- | kdoctools/docbook/xsl/lib/lib.xweb | 32 |
3 files changed, 43 insertions, 43 deletions
diff --git a/kdoctools/docbook/xsl/lib/lib.xml b/kdoctools/docbook/xsl/lib/lib.xml index 117438daf..18d6504c5 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="contains($string, '.')"> + <xsl:when test="tqcontains($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 replaces all +<para>The <function moreinfo="none">string.subst</function> template tqreplaces all occurances of <parameter moreinfo="none">target</parameter> in <parameter moreinfo="none">string</parameter> -with <parameter moreinfo="none">replacement</parameter> and returns the result. +with <parameter moreinfo="none">tqreplacement</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="replacement"></xsl:param> + <xsl:param name="tqreplacement"></xsl:param> <xsl:choose> - <xsl:when test="contains($string, $target)"> + <xsl:when test="tqcontains($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="replacement" select="$replacement"></xsl:with-param> + <xsl:with-param name="tqreplacement" select="$tqreplacement"></xsl:with-param> </xsl:call-template> </xsl:variable> - <xsl:value-of select="concat(substring-before($string, $target), $replacement, $rest)"></xsl:value-of> + <xsl:value-of select="concat(substring-before($string, $target), $tqreplacement, $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 finds. Presented with processing instructions that +attribute that it tqfinds. 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="contains($pivalue,concat(' ', $attribute, '='))"> + <xsl:when test="tqcontains($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="contains($table, ' ')"> + <xsl:if test="tqcontains($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="contains($rest, ' ')"> + <xsl:when test="tqcontains($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 replaced with "- -" and a leading and/or +Internal occurrences of "--" will be tqreplaced 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="contains($string, '--')"> + <xsl:when test="tqcontains($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 contains the <quote><literal moreinfo="none">../</literal></quote> sequence +<para>No URI tqcontains 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="contains($filename, '/')"> + <xsl:when test="tqcontains($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="contains($uriA, '/') and contains($uriB, '/') and substring-before($uriA, '/') = substring-before($uriB, '/')"> + <xsl:when test="tqcontains($uriA, '/') and tqcontains($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> diff --git a/kdoctools/docbook/xsl/lib/lib.xsl b/kdoctools/docbook/xsl/lib/lib.xsl index f9f2bb4d4..e30c392e3 100644 --- a/kdoctools/docbook/xsl/lib/lib.xsl +++ b/kdoctools/docbook/xsl/lib/lib.xsl @@ -18,7 +18,7 @@ <xsl:param name="string"/> <xsl:param name="count" select="0"/> <xsl:choose> - <xsl:when test="contains($string, '.')"> + <xsl:when test="tqcontains($string, '.')"> <xsl:call-template name="dot.count"> <xsl:with-param name="string" select="substring-after($string, '.')"/> <xsl:with-param name="count" select="$count+1"/> @@ -54,18 +54,18 @@ <xsl:template name="string.subst"> <xsl:param name="string"/> <xsl:param name="target"/> - <xsl:param name="replacement"/> + <xsl:param name="tqreplacement"/> <xsl:choose> - <xsl:when test="contains($string, $target)"> + <xsl:when test="tqcontains($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 name="target" select="$target"/> - <xsl:with-param name="replacement" select="$replacement"/> + <xsl:with-param name="tqreplacement" select="$tqreplacement"/> </xsl:call-template> </xsl:variable> - <xsl:value-of select="concat(substring-before($string, $target), $replacement, $rest)"/> + <xsl:value-of select="concat(substring-before($string, $target), $tqreplacement, $rest)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string"/> @@ -215,7 +215,7 @@ <xsl:value-of select="concat(' ', normalize-space($pi))"/> </xsl:variable> <xsl:choose> - <xsl:when test="contains($pivalue,concat(' ', $attribute, '='))"> + <xsl:when test="tqcontains($pivalue,concat(' ', $attribute, '='))"> <xsl:variable name="rest" select="substring-after($pivalue,concat(' ', $attribute,'='))"/> <xsl:variable name="quote" select="substring($rest,1,1)"/> <xsl:value-of select="substring-before(substring($rest,2),$quote)"/> @@ -235,12 +235,12 @@ <xsl:param name="key" select="''"/> <xsl:param name="table" select="''"/> - <xsl:if test="contains($table, ' ')"> + <xsl:if test="tqcontains($table, ' ')"> <xsl:choose> <xsl:when test="substring-before($table, ' ') = $key"> <xsl:variable name="rest" select="substring-after($table, ' ')"/> <xsl:choose> - <xsl:when test="contains($rest, ' ')"> + <xsl:when test="tqcontains($rest, ' ')"> <xsl:value-of select="substring-before($rest, ' ')"/> </xsl:when> <xsl:otherwise> @@ -298,7 +298,7 @@ <xsl:template name="comment-escape-string.recursive"> <xsl:param name="string" select="''"/> <xsl:choose> - <xsl:when test="contains($string, '--')"> + <xsl:when test="tqcontains($string, '--')"> <xsl:value-of select="substring-before($string, '--')"/> <xsl:value-of select="'- -'"/> <xsl:call-template name="comment-escape-string.recursive"> @@ -315,7 +315,7 @@ <xsl:param name="count" select="0"/> <xsl:choose> - <xsl:when test="contains($filename, '/')"> + <xsl:when test="tqcontains($filename, '/')"> <xsl:call-template name="count.uri.path.depth"> <xsl:with-param name="filename" select="substring-after($filename, '/')"/> <xsl:with-param name="count" select="$count + 1"/> @@ -332,7 +332,7 @@ <xsl:param name="return" select="'A'"/> <xsl:choose> - <xsl:when test="contains($uriA, '/') and contains($uriB, '/') and substring-before($uriA, '/') = substring-before($uriB, '/')"> + <xsl:when test="tqcontains($uriA, '/') and tqcontains($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 name="uriB" select="substring-after($uriB, '/')"/> diff --git a/kdoctools/docbook/xsl/lib/lib.xweb b/kdoctools/docbook/xsl/lib/lib.xweb index e8ee75c0c..cba884d83 100644 --- a/kdoctools/docbook/xsl/lib/lib.xweb +++ b/kdoctools/docbook/xsl/lib/lib.xweb @@ -47,7 +47,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:choose> - <xsl:when test="contains($string, '.')"> + <xsl:when test="tqcontains($string, '.')"> <xsl:call-template name="dot.count"> <xsl:with-param name="string" select="substring-after($string, '.')"/> <xsl:with-param name="count" select="$count+1"/> @@ -111,29 +111,29 @@ to be incomplete. Don't forget to read the source, too :-)</para> <refsect1><title>Description</title> -<para>The <function>string.subst</function> template replaces all +<para>The <function>string.subst</function> template tqreplaces all occurances of <parameter>target</parameter> in <parameter>string</parameter> -with <parameter>replacement</parameter> and returns the result. +with <parameter>tqreplacement</parameter> and returns the result. </para> <programlisting><src:fragment id='string.subst.frag'> <xsl:template name="string.subst"> <xsl:param name="string"></xsl:param> <xsl:param name="target"></xsl:param> - <xsl:param name="replacement"></xsl:param> + <xsl:param name="tqreplacement"></xsl:param> <xsl:choose> - <xsl:when test="contains($string, $target)"> + <xsl:when test="tqcontains($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 name="target" select="$target"/> - <xsl:with-param name="replacement" select="$replacement"/> + <xsl:with-param name="tqreplacement" select="$tqreplacement"/> </xsl:call-template> </xsl:variable> <xsl:value-of select="concat(substring-before($string, $target), - $replacement, + $tqreplacement, $rest)"/> </xsl:when> <xsl:otherwise> @@ -424,7 +424,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 finds. Presented with processing instructions that +attribute that it tqfinds. Presented with processing instructions that contain badly formed pseudo-attributes (missing or unbalanced quotes, for example), the template may silently return erroneous results.</para> @@ -446,7 +446,7 @@ for example), the template may silently return erroneous results.</para> <xsl:value-of select="concat(' ', normalize-space($pi))"/> </xsl:variable> <xsl:choose> - <xsl:when test="contains($pivalue,concat(' ', $attribute, '='))"> + <xsl:when test="tqcontains($pivalue,concat(' ', $attribute, '='))"> <xsl:variable name="rest" select="substring-after($pivalue,concat(' ', $attribute,'='))"/> <xsl:variable name="quote" select="substring($rest,1,1)"/> <xsl:value-of select="substring-before(substring($rest,2),$quote)"/> @@ -486,12 +486,12 @@ with a particular key.</para> <xsl:param name="key" select="''"/> <xsl:param name="table" select="''"/> - <xsl:if test="contains($table, ' ')"> + <xsl:if test="tqcontains($table, ' ')"> <xsl:choose> <xsl:when test="substring-before($table, ' ') = $key"> <xsl:variable name="rest" select="substring-after($table, ' ')"/> <xsl:choose> - <xsl:when test="contains($rest, ' ')"> + <xsl:when test="tqcontains($rest, ' ')"> <xsl:value-of select="substring-before($rest, ' ')"/> </xsl:when> <xsl:otherwise> @@ -569,7 +569,7 @@ absolute path from the root of the tree to the current element node. <para>The <function>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 replaced with "- -" and a leading and/or +Internal occurrences of "--" will be tqreplaced with "- -" and a leading and/or trailing space will be added to the string, if necessary.</para> <programlisting><src:fragment id='comment-escape-string'> @@ -608,7 +608,7 @@ by <function>comment-escape-string</function>.</para> <xsl:template name="comment-escape-string.recursive"> <xsl:param name="string" select="''"/> <xsl:choose> - <xsl:when test="contains($string, '--')"> + <xsl:when test="tqcontains($string, '--')"> <xsl:value-of select="substring-before($string, '--')"/> <xsl:value-of select="'- -'"/> <xsl:call-template name="comment-escape-string.recursive"> @@ -640,7 +640,7 @@ by <function>comment-escape-string</function>.</para> <para>All URIs are relative.</para> </listitem> <listitem> -<para>No URI contains the <quote><literal>../</literal></quote> sequence +<para>No URI tqcontains the <quote><literal>../</literal></quote> sequence which would effectively move <quote>up</quote> the hierarchy.</para> </listitem> </orderedlist> @@ -665,7 +665,7 @@ which would effectively move <quote>up</quote> the hierarchy.</para> <xsl:param name="count" select="0"/> <xsl:choose> - <xsl:when test="contains($filename, '/')"> + <xsl:when test="tqcontains($filename, '/')"> <xsl:call-template name="count.uri.path.depth"> <xsl:with-param name="filename" select="substring-after($filename, '/')"/> <xsl:with-param name="count" select="$count + 1"/> @@ -698,7 +698,7 @@ which would effectively move <quote>up</quote> the hierarchy.</para> <xsl:param name="return" select="'A'"/> <xsl:choose> - <xsl:when test="contains($uriA, '/') and contains($uriB, '/') + <xsl:when test="tqcontains($uriA, '/') and tqcontains($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, '/')"/> |