]> granicus.if.org Git - apache/commitdiff
move style/man/manpage.xsl -> style/xsl/nroff.xsl
authorAndré Malo <nd@apache.org>
Mon, 3 May 2004 19:19:14 +0000 (19:19 +0000)
committerAndré Malo <nd@apache.org>
Mon, 3 May 2004 19:19:14 +0000 (19:19 +0000)
use autogenerated man.$lang.xsl

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103580 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/lang/en.xml
docs/manual/style/man/man.en.xsl [deleted file]
docs/manual/style/xsl/language.xsl
docs/manual/style/xsl/nroff.xsl [moved from docs/manual/style/man/manpage.xsl with 100% similarity]

index 13262720e9362265080dad89e5b262765db6751d..25bb6651cda10a9aa6d8f5da13d2e2a5db5b4c34 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE language [ <!ENTITY nbsp "&#160;"> ]>
-<!-- $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>
diff --git a/docs/manual/style/man/man.en.xsl b/docs/manual/style/man/man.en.xsl
deleted file mode 100644 (file)
index e3aa61b..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?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>
index adea3a2886084b6ce119abad03f906d4513c8807..8146d9692aa055c6d78fe9af93aef8a2f3bf0fb2 100644 (file)
                 &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>
@@ -342,7 +345,8 @@ Some targets have additional requirements:
                 <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>
@@ -361,6 +365,9 @@ Some targets have additional requirements:
                             $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>
@@ -405,18 +412,23 @@ Some targets have additional requirements:
     </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
@@ -508,6 +520,9 @@ Some targets have additional requirements:
             <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>