[MacPorts] #56354: xsltproc breaks man pages

MacPorts noreply at macports.org
Wed Apr 25 13:13:59 UTC 2018


#56354: xsltproc breaks man pages
-------------------------+--------------------
  Reporter:  mouse07410  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  libxslt     |
-------------------------+--------------------

Comment (by mouse07410):

 doc/man.xsl:
 {{{
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 version="1.0">
         <xsl:import href="docbook.xsl"/>
 </xsl:stylesheet
 }}}

 doc/api.css:

 {{{
 body {
   font-family: Verdana, Arial;
   font-size: 0.9em;
 }

 .title {
   font-size: 1.5em;
   text-align: center;
 }

 .toc b {
   font-size: 1.2em;
   border-bottom: dashed 1px black;
 }

 a {
   color: blue;
   text-decoration: none;
 }

 a:visited {
   color: blue;
   text-decoration: none;
 }

 pre.programlisting {
   font-size: 1.1em;
   background-color: #EEEEEE ;
   border: 1px solid #006600 ;
   padding: 1em;
 }

 span.symbol {
   font-weight: bold;
 }

 span.errorname {
   font-weight: bold;
 }

 span.errortext {
   font-style: italic;
 }
 }}}

 Example of offending command:
 {{{
 $ xsltproc --debug --nonet --path "./..:/opt/local/share/xsl/docbook-
 xsl/manpages" --xinclude man.xsl piv-tool.1.xml
 Note: namesp. add : added namespace before processing              piv-
 tool
 Warn: meta author : no refentry/info/author                        piv-
 tool
 Note: meta author : see http://www.docbook.org/tdg5/en/html/autho  piv-
 tool
 Warn: meta author : no author data, so inserted a fixme            piv-
 tool
 Note: Writing piv-tool.1
 DOCUMENT
 version=1.0
 encoding=UTF-8
 standalone=true
 $ head -50 piv-tool.1
 '\" t
 .\"     Title: piv-tool
 .\"    Author: [FIXME: author] [see
 http://www.docbook.org/tdg5/en/html/author]
 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
 .\"      Date: 04/25/2018
 .\"    Manual: OpenSC Tools
 .\"    Source: opensc
 .\"  Language: English
 .\"
 .TH "PIV\-TOOL" "1" "04/25/2018" "opensc" "OpenSC Tools"
 .\" -----------------------------------------------------------------
 [some lines removed]
 .\" -----------------------------------------------------------------
 .\" * MAIN CONTENT STARTS HERE *
 .\" -----------------------------------------------------------------



         .SH "NAME"
 piv-tool \- smart card utility for HSPD\-12 PIV cards


         .SH "SYNOPSIS"

                 .HP \w'\fBpiv\-tool\fR\ 'u

                         \fBpiv\-tool\fR
                          [\fIOPTIONS\fR]
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/56354#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list