From 621d83937b6b3a86d5a41644d92d991142741d93 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 5 Jul 2005 02:49:13 +0000 Subject: [PATCH] Did some reorganizing. - Moved prepare.manpage.contents template out of general.xsl file and into other.xsl; general.xsl templates are now all templates that are called multiple times for each refentry, while templates in other.xsl are called only once per each refentry. - Removed get.metadata template; refentry metadata gathering is now done by common/refentry.xsl in a way that is independent of the final output format; so the common/refentry.xsl templates can be called not just by manpages stylesheets, but by stylesheets for any other output format - Added a write.man.file template. This is basically just a wrapper around the write.text.chunk template; it takes "name" and "section" params, assembles those into a filename, then passes that filename to write.text.chunk --- xsl/manpages/general.xsl | 81 +----------- xsl/manpages/info.xsl | 266 ++------------------------------------- xsl/manpages/other.xsl | 93 ++++++++++++-- 3 files changed, 94 insertions(+), 346 deletions(-) diff --git a/xsl/manpages/general.xsl b/xsl/manpages/general.xsl index e6a00d06d..d808af036 100644 --- a/xsl/manpages/general.xsl +++ b/xsl/manpages/general.xsl @@ -19,7 +19,8 @@ - + + @@ -197,92 +198,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + .\" - - - - - - - - - - - - - - - - - - - - - - - - - - - -Error: The manpages stylesheets currently require an XSLT engine that -supports the evaluate() XSLT extension function. Your XSLT engine does -not support it. - - - - - diff --git a/xsl/manpages/info.xsl b/xsl/manpages/info.xsl index f256b84ae..99f160e85 100644 --- a/xsl/manpages/info.xsl +++ b/xsl/manpages/info.xsl @@ -14,265 +14,11 @@ ******************************************************************** --> - - $info/productname - |$parentinfo/productname - |$info/orgname - |$parentinfo/orgname - |$info/corpname - |$parentinfo/corpname - |$info/corpcredit - |$parentinfo/corpcredit - |$info/corpauthor - |$parentinfo/corpauthor - |$info/author/orgname - |$parentinfo/author/orgname - |$info//publishername - |$parentinfo//publishername - - - - refmeta/refmiscinfo[@class = 'version'] - |$info/productnumber - |$parentinfo/productnumber - |$info/edition - |$parentinfo/edition - |$info/releaseinfo - |$parentinfo/releaseinfo - - - - $parentinfo/title - |../title - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - 1 - - -
- -
- - - - - - - - - - - - - - - - - - - <xsl:choose> - <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> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- + + @@ -337,11 +83,17 @@ - + + + + + + + diff --git a/xsl/manpages/other.xsl b/xsl/manpages/other.xsl index 43a4cc053..558f7df4c 100644 --- a/xsl/manpages/other.xsl +++ b/xsl/manpages/other.xsl @@ -1,5 +1,7 @@ - + - + + + + + + + @@ -128,6 +136,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -137,25 +207,26 @@ - - - + + + - + - + + - + + $section)"/> + select="concat('.so man', $section, '/', + $first.refname, '.', $section, ' ')"/> -- 2.40.0