Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 2A7AE9FB317 for ; Sun, 22 Oct 2006 11:54:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 82899-03 for ; Sun, 22 Oct 2006 14:54:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by postgresql.org (Postfix) with SMTP id B4BA19FB2D3 for ; Sun, 22 Oct 2006 11:54:53 -0300 (ADT) Received: (qmail invoked by alias); 22 Oct 2006 14:54:51 -0000 Received: from dslb-084-063-078-183.pools.arcor-ip.net (EHLO colt.pezone.net) [84.63.78.183] by mail.gmx.net (mp039) with SMTP; 22 Oct 2006 16:54:51 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: pgsql-docs@postgresql.org Subject: Re: "Fast Forward" links don't seem to be correct Date: Sun, 22 Oct 2006 16:54:49 +0200 User-Agent: KMail/1.9.5 Cc: Tom Lane References: <28923.1161473562@sss.pgh.pa.us> In-Reply-To: <28923.1161473562@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610221654.50518.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/39 X-Sequence-Number: 3760 Tom Lane wrote: > If you go to a regular, non-chapter-heading page in the PG docs, such > as > http://developer.postgresql.org/pgdocs/postgres/extend-type-system.ht >ml and try the "Fast Backward" link, it goes to that chapter's heading > page, which seems reasonable. But the "Fast Forward" link points to > the same place. Shouldn't it lead to the *next* chapter, instead? It probably should. The stylesheet code, however, doesn't seem to make any attempts about it: (define (next-major-component-chunk-element #!optional (elem (current-node)) (in-chain #f)) ;; Return the next major component of the document that is not a descendant ;; of the starting element. This is essentially 'next-sibling' but skips ;; over things that aren't chunks. (if (or (navigate-to? elem) in-chain) (if (member (gi elem) (major-component-element-list)) ; <--- It's a chapter or other major chunk. (if (node-list-empty? (node-list-first-element (follow elem))) (next-major-component-chunk-element (parent elem)) (let ((nd (node-list-first-element (follow elem)))) (if (navigate-to? nd) nd (next-major-component-chunk-element nd #t)))) (ancestor-member elem (major-component-element-list))) ; <--- Else picks ancestor (should pick something after ancestor). (empty-node-list))) I tried to change that but my first attempts seem to make the build take forever. I'll play around with it some more. At least I think that's where it's happening ... -- Peter Eisentraut http://developer.postgresql.org/~petere/