Replace the <port> tag with a construct in terms of <filename>:
<filename role="package">. The <port> tag as it was had two major defects: (a) the name is ambiguous (does "port" mean "architecture"? how about "TCP/UDP port"?), and (b) it introduces a non-standard (to DocBook) tag, which is generally assumed to be evil. Moral support by: bmah, keramida, mwlucas, roam
This commit is contained in:
parent
d389050efd
commit
9d1a5ade02
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=12303
2 changed files with 10 additions and 15 deletions
|
@ -141,13 +141,16 @@
|
|||
($italic-seq$)
|
||||
($charseq$)))))
|
||||
|
||||
(element port
|
||||
(let* ((urlurl "http://www.FreeBSD.org/cgi/url.cgi")
|
||||
(href (string-append urlurl "?ports/"
|
||||
(element filename
|
||||
(let* ((class (attribute-string (normalize "role"))))
|
||||
(cond
|
||||
((equal? class "package")
|
||||
(let* ((urlurl "http://www.FreeBSD.org/cgi/url.cgi")
|
||||
(href (string-append urlurl "?ports/"
|
||||
(data (current-node))
|
||||
"/pkg-descr")))
|
||||
(create-link (list (list "HREF" href))
|
||||
($mono-seq$))))
|
||||
(create-link (list (list "HREF" href)) ($mono-seq$))))
|
||||
(else ($mono-seq$)))))
|
||||
]]>
|
||||
|
||||
<!-- HTML with images ............................................ -->
|
||||
|
@ -394,9 +397,6 @@
|
|||
; (urlwrap)
|
||||
; (literal ">")))
|
||||
|
||||
(element port
|
||||
(pathwrap))
|
||||
|
||||
(element filename
|
||||
(pathwrap))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue