Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2000 22:15:13 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        Nik Clayton <nik@freebsd.org>
Cc:        Alexey Zelkin <phantom@cris.crimea.ua>, freebsd-doc@FreeBSD.ORG
Subject:   Re: docs/20056: Bad SGML in the "@ sign" entry of the FAQ
Message-ID:  <20000724221513.G28657@strontium.scientia.demon.co.uk>
In-Reply-To: <20000724193521.B57387@catkin.nothing-going-on.org>
References:  <200007211630.JAA10561@freefall.freebsd.org> <20000721225213.B51580@ark.cris.net> <20000722064931.M64132@strontium.scientia.demon.co.uk> <20000724193521.B57387@catkin.nothing-going-on.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Nik Clayton wrote:

> ------------ 8< ------------ 8< ------------ 8< ------------ 8< ------------ 
> <!-- Convert <citerefentry> into links to man.cgi -->
> (element citerefentry
>   (let ((ref (select-elements (descendants (current-node))
>                               (normalize "refentrytitle")))
>         (vol (select-elements (descendants (current-node))
>                               (normalize "manvolnum"))))
>     (make element gi: "a"
>           attributes: (list (list "href" (string-append
>                                   "http://www.FreeBSD.org/cgi/man.cgi?" 
>                                   (data (node-list-first ref)) 
>                                   "(" 
>                                   (data (node-list-first vol)) ")")))
>       (process-children))))
> ------------ 8< ------------ 8< ------------ 8< ------------ 8< ------------

Works nicely, except in the case I mentioned in my other mail, where a
&man.foo entity is already used within a link, so you get this:

          <dt>Q: <a href="misc.html#AEN4157">Why does <a href=
          "http://www.FreeBSD.org/cgi/man.cgi?top(1)"><span class=
          "REFENTRYTITLE">top</span>(1)</a> show very little free
          memory even when I have very few programs
          running?</a></dt>

Should these rare cases just be changed, or can you add some more magic
to that stuff to make the link not be created if the text is already
within a link?

-- 
Ben Smithurst                 / ben@FreeBSD.org / PGP: 0x99392F7D
FreeBSD Documentation Project /


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000724221513.G28657>