From 3fd55cd018224899d2ddcc8017c870e712d72371 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 28 May 2005 18:01:35 +0000 Subject: [PATCH] Added support for refsect3 and formalpara processing (closes #1210478 and #1210479). Also did some further templates re-organizing, including to the logic for gathering and processing metadata. --- xsl/manpages/block.xsl | 75 +++-------------- xsl/manpages/docbook.xsl | 169 +++++++++++++++++--------------------- xsl/manpages/general.xsl | 24 ++++++ xsl/manpages/refentry.xsl | 84 +++++++++++++++++++ 4 files changed, 195 insertions(+), 157 deletions(-) create mode 100644 xsl/manpages/refentry.xsl diff --git a/xsl/manpages/block.xsl b/xsl/manpages/block.xsl index 430771f3f..053522dec 100644 --- a/xsl/manpages/block.xsl +++ b/xsl/manpages/block.xsl @@ -14,75 +14,20 @@ - - - - .SS " - - - - .SH " - - - - " - - - - - .SS " - - " - - - - - .SH " - - - - - - - - " + + + - + - - .SH " - - - - - - - - " - - - , - - - - \- - + + + .RS 3 + + .RE - - - - .RS .Sh " - - " - - .RE - - .PP @@ -101,7 +46,7 @@ - + diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index 711f9a745..5d010ced7 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -17,7 +17,9 @@ + + @@ -47,32 +49,28 @@ - - - - - - + + - - + + - + - + - - - - - + + + + + @@ -86,19 +84,19 @@ - + + $metadata/section)"/> @@ -111,7 +109,7 @@ - + @@ -123,36 +121,15 @@ - .\"Generated by db2man.xsl. Don't modify this, modify the source. -.\" -. \"--------------------------------------------------- -.de Sh \" - a second-level section (a DocBook refsect2) -.br -.if t .Sp -.ne 5 -\fB\\$1\fR -.PP -..\"--------------------------------------------------- -.de Sp \" - vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -..\"--------------------------------------------------- -.de Ip \" - a list item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -..\"--------------------------------------------------- -.\" - + .\"Generated by db2man.xsl. Don't modify this, modify the source. - + .\" "TITLE" "SECTION NUMBER" "DATE" "PRODUCT" "GROUP TITLE" @@ -167,7 +144,7 @@ " " " " - + " @@ -194,11 +171,13 @@ - + - + + + @@ -214,62 +193,68 @@ - - - - - - - - - - - - + + + + + + + + - + <xsl:variable name="reftitle"> <xsl:choose> - <xsl:when test="refentryinfo/title"> - <xsl:value-of select="refentryinfo/title"/> - </xsl:when> - <xsl:when test="../referenceinfo/title"> - <xsl:value-of select="../referenceinfo/title"/> + <xsl:when test="refmeta/refentrytitle"> + <xsl:copy> + <xsl:apply-templates select="refmeta/refentrytitle/node()"/> + </xsl:copy> </xsl:when> + <xsl:otherwise> + <xsl:copy-of select="$name"/> + </xsl:otherwise> </xsl:choose> - + + + + + - - + + + + - - + + + + + + + + + - + - - + + - - + + + + + - - - - - - - - - + + @@ -313,16 +298,16 @@ - - Copyright \(co - - .Sp - - < > + + Copyright \(co + + .Sp + + diff --git a/xsl/manpages/general.xsl b/xsl/manpages/general.xsl index b98b743ef..23185f1cc 100644 --- a/xsl/manpages/general.xsl +++ b/xsl/manpages/general.xsl @@ -46,6 +46,30 @@ + + + .sp +.it 1 an-trap +.nr an-no-space-flag 1 +.nr an-break-flag 1 +.br + + + + + + + + + + + + + + + + + diff --git a/xsl/manpages/refentry.xsl b/xsl/manpages/refentry.xsl new file mode 100644 index 000000000..1fa73dd0f --- /dev/null +++ b/xsl/manpages/refentry.xsl @@ -0,0 +1,84 @@ + + + + + + + + + .SH " + + + + + + + + " + + + , + + + + \- + + + + + + .SH " + + + + + + + + " + + + + + + + .SS " + + + + .SH " + + + + " + + + + + .SS " + + " + + + + + + + .RS 3 + + .RE + + + -- 2.40.0