From: Michael Smith Date: Mon, 11 Jul 2005 10:29:58 +0000 (+0000) Subject: Implemented out-of-line handling of URLs for links (Ulinks). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e2d2508272d8ed90d71aeee9a9ac38cea62602c;p=docbook-dsssl Implemented out-of-line handling of URLs for links (Ulinks). (Closes #1234711 and #1233909) For display of links, this implementation gives users three choices: 1. Number & list links. Each link is numbered and a numbered list of all links is added to the end of the document. or 2. Only list links. Links are not numbered, but an (unnumbered) list of links is added to the end of the document. or 3. Suppress links. Don't number links and don't add any list of links to the end of the document Users can also choose whether links should be underlined. Default is "the works" -- list, number, and underline links. The man.links.* parameters can be used to change the defaults. The default heading for the link list is REFERENCES. That can be changed using the man.links.list.heading param. There is a performance hit for listing and numbering links. But it is not an unreasonable one. The code currently only checks for Ulinks. It can be updated later (possibly) to deal with DocBook NG linking. But come to think of it, DocBook NG links get converted by the strip-ns template. So DocBook NG users will just need to run that first. Or, if I can ever manage to get the single-pass conversion process to work with manpages, it will get done automatically. --- diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index ae9986362..d0563679d 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -32,6 +32,7 @@ + @@ -141,12 +142,13 @@ - + - + - + diff --git a/xsl/manpages/inline.xsl b/xsl/manpages/inline.xsl index 8b166974e..776a96dc9 100644 --- a/xsl/manpages/inline.xsl +++ b/xsl/manpages/inline.xsl @@ -13,63 +13,6 @@ ******************************************************************** --> -1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -141,238 +84,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ - - - - - - - - - ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Links - - - - - - - - - - - - - - - - - - - - - - .SH " - - - - - - - - - - - - - - - " - - - - - - .PP - - - - - - - - - - - .br - - - - - - - - - - - diff --git a/xsl/manpages/links.xsl b/xsl/manpages/links.xsl new file mode 100644 index 000000000..88d0212be --- /dev/null +++ b/xsl/manpages/links.xsl @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .SH " + + + + + + + + + + + + + + + + + " + + + + + + + + + + .TP + + + + + + + + + + + + + + + + + + + + + .br + + + + + + + diff --git a/xsl/manpages/param.ent b/xsl/manpages/param.ent index 5339f513d..10202a659 100644 --- a/xsl/manpages/param.ent +++ b/xsl/manpages/param.ent @@ -5,7 +5,8 @@ - + + diff --git a/xsl/manpages/param.xweb b/xsl/manpages/param.xweb index c25ebfdb3..cd838af1a 100644 --- a/xsl/manpages/param.xweb +++ b/xsl/manpages/param.xweb @@ -29,20 +29,17 @@ - General + General formatting &man.break.after.slash; &man.hyphenate; &man.justify; -&man.output.quietly; -&man.output.encoding; -&man.subheading.divider.enabled; -&man.subheading.divider; Link handling &man.links.are.numbered; &man.links.are.underlined; -&man.links.section.heading; +&man.links.list.enabled; +&man.links.list.heading; Character/string substitution @@ -75,6 +72,13 @@ &man.th.title.max.length; &man.th.extra2.max.length; &man.th.extra3.max.length; + + + Other +&man.output.quietly; +&man.output.encoding; +&man.subheading.divider.enabled; +&man.subheading.divider; The Stylesheet @@ -107,7 +111,8 @@ - + +