Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcCbw-00025F-SN for pgsql-docs@arkaria.postgresql.org; Tue, 23 Aug 2016 14:23:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bcCbw-0006Ne-AZ for pgsql-docs@arkaria.postgresql.org; Tue, 23 Aug 2016 14:23:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bcCbv-0006N9-CZ for pgsql-docs@postgresql.org; Tue, 23 Aug 2016 14:23:27 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bcCbo-00064n-6w for pgsql-docs@postgresql.org; Tue, 23 Aug 2016 14:23:26 +0000 Received: by mail-lf0-x22f.google.com with SMTP id b199so102158471lfe.0 for ; Tue, 23 Aug 2016 07:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=tltaOWszNvQCwtzLX57MeLCbUhVIyjYZcJxopkrtwSc=; b=xL9t55Bn4px6p9O8CZoHMiXOpoFWc+Fv4bUTEEOlLir3B7r2Ifgt3XQUzNkSeKbZzV LOuo5Q8/MhkG8lG7D70VnhZEUhhR1wdTNtBJsXV0T8zgOuZhwmzLNcQiq7QHG7Zf4PmP s2F0vAnWuneyibjMGSTIRSOuhFSBZsVQAw1/j89RDuxtfUe+CxFGVIBj/LOcPk83RXt+ yehNJa4RI65TZv5Dg+3UAVnh39F6OwAGh3EjfS79Q+1bObh2nxL3PeVmTlC35oySI1Ap x5RfpLd1Y3cRC4/RvhSkAImff/c53JeXe1U0PVz3wYHD7U0tFXjfkY8y2mckwsahklt4 qR/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=tltaOWszNvQCwtzLX57MeLCbUhVIyjYZcJxopkrtwSc=; b=V+EPfdhP0BSPQgIFj9niHrHaowxy67BhlQ6vvYGlRNTLCsoMQR90BHZQhk8FTg5o0J FjdODAh9bQ1A7E3p5XwBczv9XZhQJNY4iiAfWT3/g8G8tw9OFvaZfaMXR7gQ6rLSXHBg OdYomvauNt27I8HffZjj2jaMPV9iotSX82RC4/zcCblNq19oyNK6oRN5GhJLR67aPG9N q97DVU6VYb6Rg9sVAl9MjlDbkm+6vNBHIf9yFIN2Cw9UAfuLkoP2sKwqftjFT6Bb5ByJ N8SJHD1w1Bloxynr9F/pOiOO63UM4JHV1YcziwySf3xZrX/6LXgcnqNTn8HzYSkGb85f UtlA== X-Gm-Message-State: AEkoouvP9H0s1U6bvAHYrz1xtCWItSbfyM0oIbLiqARt0il+ufwbUlsUqRaL6eXQOa/coA== X-Received: by 10.25.18.227 with SMTP id 96mr5813522lfs.183.1471962197997; Tue, 23 Aug 2016 07:23:17 -0700 (PDT) Received: from [1.0.0.7] ([109.196.196.118]) by smtp.gmail.com with ESMTPSA id g74sm885870ljg.24.2016.08.23.07.23.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Aug 2016 07:23:17 -0700 (PDT) Subject: Re: Docbook 5.x To: Peter Eisentraut , obartunov@gmail.com, Alvaro Herrera , Alexander Lakhin References: <57179283.6080704@purtz.de> <20160503193441.GA61759@alvherre.pgsql> <572AD007.60900@gmail.com> <5752E599.2090505@gmail.com> <576d0623-a89c-b3de-e321-dc48a579ff1a@2ndquadrant.com> Cc: =?UTF-8?Q?J=c3=bcrgen_Purtz?= , pgsql-docs@postgresql.org From: Alexander Law Message-ID: <4adecfc6-2f2e-2ff2-bfa3-58b7d397227b@gmail.com> Date: Tue, 23 Aug 2016 17:23:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------2A62B59B5DB3A23BDF3113E2" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------2A62B59B5DB3A23BDF3113E2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, >> The next items in our plan were: > An immediate problem is that the patched stuff no longer works with > older stylesheets (1.76.1?). I'm glad to leave older stuff behind for a > 400% speedup, but we need to analyze the exact effect and possibly > document it or work around it. Please consider committing attached patch. Commented-out call-template does nothing so we can just customize our customized templates further to support 1.76. I've just performed the build with Ubuntu 13.04/docbook 1.76.1 - it works. (In case the call-template generated something it would appear in bookindex.html only.) > >> - Wait a while to make sure everyone is happy with the performance. Keep >> tweaking if necessary. >> - Port all DSSSL customizations to XSLT. Manually evaluate output for >> quality. >> >> Should we now compare DSSSL outputs with XSLT? >> I had some success with it before. See my letter: >> https://www.postgresql.org/message-id/57712848.7060306%40gmail.com >> Those xslt's (see xhtml-like-dsssl.patch) can help us to see all the >> differences and to decide which customizations to keep. > It looks like the idea there is to whack the XSLT stylesheets until the > output looks exactly like the DSSSL output? I'm not sure that's > terribly useful. It would probably be a lot of work, which we'll just > end up removing eventually. I'd rather just fix any formatting issues > we find and move forward. That work is done already and it's results are countable and observable differences. (See comments in the xslt.) For example, with DSSSL we don't get a chapter TOC when the chapter contains only one sect1 (with XSLT we get the TOC with the one item). We also had subtoc for sect1/refentry and sect1/simplesect, but with XSLT it's absent. So if all such differences are not important, let's move forward. Best regards, Alexander --------------2A62B59B5DB3A23BDF3113E2 Content-Type: text/x-patch; name="stylesheet-speedup-docbook-1.76.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="stylesheet-speedup-docbook-1.76.patch" diff --git a/doc/src/sgml/stylesheet-speedup-xhtml.xsl b/doc/src/sgml/stylesheet-speedup-xhtml.xsl index 8428dc5..b6df684 100644 --- a/doc/src/sgml/stylesheet-speedup-xhtml.xsl +++ b/doc/src/sgml/stylesheet-speedup-xhtml.xsl @@ -122,7 +122,8 @@ - + + @@ -146,7 +147,8 @@ - + + --------------2A62B59B5DB3A23BDF3113E2 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------2A62B59B5DB3A23BDF3113E2--