diff options
Diffstat (limited to 'kdoctools/docbook/xsl/manpages/docbook.xsl')
-rw-r--r-- | kdoctools/docbook/xsl/manpages/docbook.xsl | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/kdoctools/docbook/xsl/manpages/docbook.xsl b/kdoctools/docbook/xsl/manpages/docbook.xsl index d0f4367b8..2cfd8f78f 100644 --- a/kdoctools/docbook/xsl/manpages/docbook.xsl +++ b/kdoctools/docbook/xsl/manpages/docbook.xsl @@ -86,7 +86,7 @@ <xsl:text> .PP </xsl:text> <xsl:for-each select="node()"> <xsl:choose> - <xsl:when test="self::literallayout|self::informaltable|self::screen| + <xsl:when test="self::literaltqlayout|self::informaltable|self::screen| self::programlisting|self::itemizedlist| self::orderedlist|self::variablelist|self::simplelist"> <xsl:text> </xsl:text> @@ -183,12 +183,12 @@ </xsl:choose> </xsl:variable> - <!-- replace spaces with underscores in the filename --> + <!-- tqreplace spaces with underscores in the filename --> <xsl:variable name="filename"> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="concat(normalize-space ($name), '.', $section)"/> - <xsl:with-param name="replace" select="' '"/> + <xsl:with-param name="tqreplace" select="' '"/> <xsl:with-param name="with" select="'_'"/> </xsl:call-template> </xsl:variable> @@ -323,7 +323,7 @@ <xsl:apply-templates/> </xsl:template> -<xsl:template match="filename|replaceable|varname"> +<xsl:template match="filename|tqreplaceable|varname"> <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> @@ -348,7 +348,7 @@ <xsl:text>''</xsl:text> </xsl:template> -<xsl:template match="programlisting|literallayout"> +<xsl:template match="programlisting|literaltqlayout"> <xsl:text> .nf </xsl:text> <xsl:apply-templates/> <xsl:text> .fi </xsl:text> @@ -398,91 +398,91 @@ </xsl:template> <!-- Translate some entities to textual equivalents. --> -<xsl:template name="replace-string"> +<xsl:template name="tqreplace-string"> <xsl:param name="content" select="''"/> - <xsl:param name="replace" select="''"/> + <xsl:param name="tqreplace" select="''"/> <xsl:param name="with" select="''"/> <xsl:choose> - <xsl:when test="not(contains($content,$replace))"> + <xsl:when test="not(tqcontains($content,$tqreplace))"> <xsl:value-of select="$content"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="substring-before($content,$replace)"/> + <xsl:value-of select="substring-before($content,$tqreplace)"/> <xsl:value-of select="$with"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" - select="substring-after($content,$replace)"/> - <xsl:with-param name="replace" select="$replace"/> + select="substring-after($content,$tqreplace)"/> + <xsl:with-param name="tqreplace" select="$tqreplace"/> <xsl:with-param name="with" select="$with"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> -<xsl:template name="replace-dash"> +<xsl:template name="tqreplace-dash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'-'"/> + <xsl:with-param name="tqreplace" select="'-'"/> <xsl:with-param name="with" select="'\-'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-ndash"> +<xsl:template name="tqreplace-ndash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'–'"/> + <xsl:with-param name="tqreplace" select="'–'"/> <xsl:with-param name="with" select="'-'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-mdash"> +<xsl:template name="tqreplace-mdash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'—'"/> + <xsl:with-param name="tqreplace" select="'—'"/> <xsl:with-param name="with" select="'--'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-hellip"> +<xsl:template name="tqreplace-hellip"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'…'"/> + <xsl:with-param name="tqreplace" select="'…'"/> <xsl:with-param name="with" select="'...'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-setmn"> +<xsl:template name="tqreplace-setmn"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'∖'"/> + <xsl:with-param name="tqreplace" select="'∖'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-minus"> +<xsl:template name="tqreplace-minus"> <xsl:param name="content" select="''"/> <xsl:value-of select="translate($content,'−','-')"/> </xsl:template> -<xsl:template name="replace-nbsp"> +<xsl:template name="tqreplace-nbsp"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="' '"/> + <xsl:with-param name="tqreplace" select="' '"/> <xsl:with-param name="with" select="'\~'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-backslash"> +<xsl:template name="tqreplace-backslash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'\'"/> + <xsl:with-param name="tqreplace" select="'\'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> @@ -490,34 +490,34 @@ <!-- if a period character is output at the beginning of a line it will be interpreted as a groff macro, so prefix all periods with "\&", a zero-width space. --> -<xsl:template name="replace-period"> +<xsl:template name="tqreplace-period"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'.'"/> + <xsl:with-param name="tqreplace" select="'.'"/> <xsl:with-param name="with" select="'\&.'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-entities"> +<xsl:template name="tqreplace-entities"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-hellip"> + <xsl:call-template name="tqreplace-hellip"> <xsl:with-param name="content"> - <xsl:call-template name="replace-minus"> + <xsl:call-template name="tqreplace-minus"> <xsl:with-param name="content"> - <xsl:call-template name="replace-mdash"> + <xsl:call-template name="tqreplace-mdash"> <xsl:with-param name="content"> - <xsl:call-template name="replace-ndash"> + <xsl:call-template name="tqreplace-ndash"> <xsl:with-param name="content"> - <xsl:call-template name="replace-dash"> + <xsl:call-template name="tqreplace-dash"> <xsl:with-param name="content"> - <xsl:call-template name="replace-setmn"> + <xsl:call-template name="tqreplace-setmn"> <xsl:with-param name="content"> - <xsl:call-template name="replace-period"> + <xsl:call-template name="tqreplace-period"> <xsl:with-param name="content"> - <xsl:call-template name="replace-nbsp"> + <xsl:call-template name="tqreplace-nbsp"> <xsl:with-param name="content"> - <xsl:call-template name="replace-backslash"> + <xsl:call-template name="tqreplace-backslash"> <xsl:with-param name="content" select="$content"/> </xsl:call-template> </xsl:with-param> @@ -565,7 +565,7 @@ </xsl:template> <xsl:template match="text()"> - <xsl:call-template name="replace-entities"> + <xsl:call-template name="tqreplace-entities"> <xsl:with-param name="content"> <xsl:value-of select="."/> </xsl:with-param> |