summaryrefslogtreecommitdiffstats
path: root/kdoctools/docbook/xsl/lib
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdoctools/docbook/xsl/lib
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdoctools/docbook/xsl/lib')
-rw-r--r--kdoctools/docbook/xsl/lib/lib.xml32
-rw-r--r--kdoctools/docbook/xsl/lib/lib.xsl22
-rw-r--r--kdoctools/docbook/xsl/lib/lib.xweb32
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>
&lt;xsl:param name="string"&gt;&lt;/xsl:param&gt;
&lt;xsl:param name="count" select="0"&gt;&lt;/xsl:param&gt;
&lt;xsl:choose&gt;
- &lt;xsl:when test="contains($string, '.')"&gt;
+ &lt;xsl:when test="tqcontains($string, '.')"&gt;
&lt;xsl:call-template name="dot.count"&gt;
&lt;xsl:with-param name="string" select="substring-after($string, '.')"&gt;&lt;/xsl:with-param&gt;
&lt;xsl:with-param name="count" select="$count+1"&gt;&lt;/xsl:with-param&gt;
@@ -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">
&lt;xsl:template name="string.subst"&gt;
&lt;xsl:param name="string"&gt;&lt;/xsl:param&gt;
&lt;xsl:param name="target"&gt;&lt;/xsl:param&gt;
- &lt;xsl:param name="replacement"&gt;&lt;/xsl:param&gt;
+ &lt;xsl:param name="tqreplacement"&gt;&lt;/xsl:param&gt;
&lt;xsl:choose&gt;
- &lt;xsl:when test="contains($string, $target)"&gt;
+ &lt;xsl:when test="tqcontains($string, $target)"&gt;
&lt;xsl:variable name="rest"&gt;
&lt;xsl:call-template name="string.subst"&gt;
&lt;xsl:with-param name="string" select="substring-after($string, $target)"&gt;&lt;/xsl:with-param&gt;
&lt;xsl:with-param name="target" select="$target"&gt;&lt;/xsl:with-param&gt;
- &lt;xsl:with-param name="replacement" select="$replacement"&gt;&lt;/xsl:with-param&gt;
+ &lt;xsl:with-param name="tqreplacement" select="$tqreplacement"&gt;&lt;/xsl:with-param&gt;
&lt;/xsl:call-template&gt;
&lt;/xsl:variable&gt;
- &lt;xsl:value-of select="concat(substring-before($string, $target), $replacement, $rest)"&gt;&lt;/xsl:value-of&gt;
+ &lt;xsl:value-of select="concat(substring-before($string, $target), $tqreplacement, $rest)"&gt;&lt;/xsl:value-of&gt;
&lt;/xsl:when&gt;
&lt;xsl:otherwise&gt;
&lt;xsl:value-of select="$string"&gt;&lt;/xsl:value-of&gt;
@@ -407,7 +407,7 @@ from a processing instruction. For example, given the PI
&lt;xsl:with-param name="attribute" select="'baz'"/&gt;
&lt;/xsl:call-template&gt;</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>
&lt;xsl:value-of select="concat(' ', normalize-space($pi))"&gt;&lt;/xsl:value-of&gt;
&lt;/xsl:variable&gt;
&lt;xsl:choose&gt;
- &lt;xsl:when test="contains($pivalue,concat(' ', $attribute, '='))"&gt;
+ &lt;xsl:when test="tqcontains($pivalue,concat(' ', $attribute, '='))"&gt;
&lt;xsl:variable name="rest" select="substring-after($pivalue,concat(' ', $attribute,'='))"&gt;&lt;/xsl:variable&gt;
&lt;xsl:variable name="quote" select="substring($rest,1,1)"&gt;&lt;/xsl:variable&gt;
&lt;xsl:value-of select="substring-before(substring($rest,2),$quote)"&gt;&lt;/xsl:value-of&gt;
@@ -469,12 +469,12 @@ with a particular key.</para>
&lt;xsl:param name="key" select="''"&gt;&lt;/xsl:param&gt;
&lt;xsl:param name="table" select="''"&gt;&lt;/xsl:param&gt;
- &lt;xsl:if test="contains($table, ' ')"&gt;
+ &lt;xsl:if test="tqcontains($table, ' ')"&gt;
&lt;xsl:choose&gt;
&lt;xsl:when test="substring-before($table, ' ') = $key"&gt;
&lt;xsl:variable name="rest" select="substring-after($table, ' ')"&gt;&lt;/xsl:variable&gt;
&lt;xsl:choose&gt;
- &lt;xsl:when test="contains($rest, ' ')"&gt;
+ &lt;xsl:when test="tqcontains($rest, ' ')"&gt;
&lt;xsl:value-of select="substring-before($rest, ' ')"&gt;&lt;/xsl:value-of&gt;
&lt;/xsl:when&gt;
&lt;xsl:otherwise&gt;
@@ -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>
&lt;xsl:template name="comment-escape-string.recursive"&gt;
&lt;xsl:param name="string" select="''"&gt;&lt;/xsl:param&gt;
&lt;xsl:choose&gt;
- &lt;xsl:when test="contains($string, '--')"&gt;
+ &lt;xsl:when test="tqcontains($string, '--')"&gt;
&lt;xsl:value-of select="substring-before($string, '--')"&gt;&lt;/xsl:value-of&gt;
&lt;xsl:value-of select="'- -'"&gt;&lt;/xsl:value-of&gt;
&lt;xsl:call-template name="comment-escape-string.recursive"&gt;
@@ -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>
&lt;xsl:param name="count" select="0"&gt;&lt;/xsl:param&gt;
&lt;xsl:choose&gt;
- &lt;xsl:when test="contains($filename, '/')"&gt;
+ &lt;xsl:when test="tqcontains($filename, '/')"&gt;
&lt;xsl:call-template name="count.uri.path.depth"&gt;
&lt;xsl:with-param name="filename" select="substring-after($filename, '/')"&gt;&lt;/xsl:with-param&gt;
&lt;xsl:with-param name="count" select="$count + 1"&gt;&lt;/xsl:with-param&gt;
@@ -680,7 +680,7 @@ which would effectively move <quote>up</quote> the hierarchy.</para>
&lt;xsl:param name="return" select="'A'"&gt;&lt;/xsl:param&gt;
&lt;xsl:choose&gt;
- &lt;xsl:when test="contains($uriA, '/') and contains($uriB, '/') and substring-before($uriA, '/') = substring-before($uriB, '/')"&gt;
+ &lt;xsl:when test="tqcontains($uriA, '/') and tqcontains($uriB, '/') and substring-before($uriA, '/') = substring-before($uriB, '/')"&gt;
&lt;xsl:call-template name="trim.common.uri.paths"&gt;
&lt;xsl:with-param name="uriA" select="substring-after($uriA, '/')"&gt;&lt;/xsl:with-param&gt;
&lt;xsl:with-param name="uriB" select="substring-after($uriB, '/')"&gt;&lt;/xsl:with-param&gt;
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, '/')"/>