diff options
author | André Malo <nd@apache.org> | 2004-05-03 21:19:14 +0200 |
---|---|---|
committer | André Malo <nd@apache.org> | 2004-05-03 21:19:14 +0200 |
commit | c050840d43691fda42069f2f472add642733ef13 (patch) | |
tree | 7086b33f2978b91779273122b69b445ad3f17759 /docs | |
parent | fixup CHM settings (diff) | |
download | apache2-c050840d43691fda42069f2f472add642733ef13.tar.xz apache2-c050840d43691fda42069f2f472add642733ef13.zip |
move style/man/manpage.xsl -> style/xsl/nroff.xsl
use autogenerated man.$lang.xsl
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103580 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rw-r--r-- | docs/manual/style/lang/en.xml | 6 | ||||
-rw-r--r-- | docs/manual/style/man/man.en.xsl | 34 | ||||
-rw-r--r-- | docs/manual/style/xsl/language.xsl | 45 | ||||
-rw-r--r-- | docs/manual/style/xsl/nroff.xsl (renamed from docs/manual/style/man/manpage.xsl) | 0 |
4 files changed, 35 insertions, 50 deletions
diff --git a/docs/manual/style/lang/en.xml b/docs/manual/style/lang/en.xml index 13262720e9..25bb6651cd 100644 --- a/docs/manual/style/lang/en.xml +++ b/docs/manual/style/lang/en.xml @@ -1,6 +1,6 @@ <?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 @@ -31,6 +31,10 @@ <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 index e3aa61bb9d..0000000000 --- a/docs/manual/style/man/man.en.xsl +++ /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> diff --git a/docs/manual/style/xsl/language.xsl b/docs/manual/style/xsl/language.xsl index adea3a2886..8146d9692a 100644 --- a/docs/manual/style/xsl/language.xsl +++ b/docs/manual/style/xsl/language.xsl @@ -200,13 +200,16 @@ &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> diff --git a/docs/manual/style/man/manpage.xsl b/docs/manual/style/xsl/nroff.xsl index 9f9924ffe5..9f9924ffe5 100644 --- a/docs/manual/style/man/manpage.xsl +++ b/docs/manual/style/xsl/nroff.xsl |