<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE language [ <!ENTITY nbsp " "> ]>
-<!-- $Revision: 1.17 $ -->
+<!-- $Revision: 1.18 $ -->
<!--
Copyright 2002-2004 The Apache Software Foundation
<settings>English (USA)</settings>
</chm>
+ <man>
+ <charset>ISO-8859-1</charset>
+ </man>
+
<!-- Some strings might be used in other contexts, than stated in the -->
<!-- comments... -->
<messages>
+++ /dev/null
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!--
- Copyright 2003-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:output
- method="text"
- encoding="ISO-8859-1"
- indent="no"
-/>
-
-<!-- Read the localized messages from the specified language file -->
-<xsl:variable name="message" select="document('../lang/en.xml')/language/messages/message" />
-
-<!-- Now get the real guts of the stylesheet -->
-<xsl:include href="manpage.xsl" />
-
-</xsl:stylesheet>
&lf;
</xsl:if>
- <xsl:if test=". = 'en'">
- <target name="man-en"
- description="- builds the English nroff files">&lf;
+ <xsl:if test="$file/man">
+ <target name="man-{.}"
+ description="- builds the {$file/name} nroff files">&lf;
<xsl:text> </xsl:text>
- <nroff.generic lang="en" />&lf;
+ <nroff.generic lang="{.}" />&lf;
</target>
&lf;
+ </xsl:if>
+
+ <xsl:if test=". = 'en'">
<target name="latex-en"
description="- builds the English latex file">&lf;
<xsl:text> </xsl:text>
<xsl:text>xml</xsl:text>
</xsl:when>
<xsl:when test="$type = 'hhc' or
- $type = 'hhp'">
+ $type = 'hhp' or
+ $type = 'man'">
<xsl:text>text</xsl:text>
</xsl:when>
<xsl:otherwise>
$type = 'hhp'">
<xsl:value-of select="chm/charset" />
</xsl:when>
+ <xsl:when test="$type = 'man'">
+ <xsl:value-of select="man/charset" />
+ </xsl:when>
<xsl:otherwise>
<xsl:value-of select="charset" />
</xsl:otherwise>
</xsl:element>
&lf;
- <xsl:element name="xsl:variable">
- <xsl:attribute name="name">doclang</xsl:attribute>
- <xsl:value-of select="@id" />
- </xsl:element>
- &lf;&lf;
-
- <xsl:comment>
- <xsl:text> some meta information have to be passed to the </xsl:text>
- <xsl:text>transformation </xsl:text>
- </xsl:comment>
+ <xsl:if test="$type != 'man'">
+ <xsl:element name="xsl:variable">
+ <xsl:attribute name="name">doclang</xsl:attribute>
+ <xsl:value-of select="@id" />
+ </xsl:element>
+ &lf;
+ </xsl:if>
&lf;
+ <xsl:if test="$type != 'man'">
+ <xsl:comment>
+ <xsl:text> some meta information have to be passed to </xsl:text>
+ <xsl:text>the transformation </xsl:text>
+ </xsl:comment>
+ &lf;
+ </xsl:if>
+
<xsl:if test="$type = 'manual' or
$type = 'chm' or
$type = 'zip' or
<xsl:when test="$type = 'hhp'">
<xsl:text>../xsl/hhp.xsl</xsl:text>
</xsl:when>
+ <xsl:when test="$type = 'man'">
+ <xsl:text>../xsl/nroff.xsl</xsl:text>
+ </xsl:when>
<xsl:otherwise>
<xsl:text>xsl/common.xsl</xsl:text>
</xsl:otherwise>