Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay15z-0005MO-EI for pgsql-docs@arkaria.postgresql.org; Wed, 04 May 2016 18:00:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ay15z-0008Mh-0t for pgsql-docs@arkaria.postgresql.org; Wed, 04 May 2016 18:00:23 +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 1ay15y-0008Ma-Gh for pgsql-docs@postgresql.org; Wed, 04 May 2016 18:00:22 +0000 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ay15u-0005AD-A8 for pgsql-docs@postgresql.org; Wed, 04 May 2016 18:00:21 +0000 Received: by mail-lf0-x229.google.com with SMTP id j8so69314312lfd.2 for ; Wed, 04 May 2016 11:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=H2LsdSIcOD3EbNBRpg2Uztk/spKARNPgqOaMONDlAzI=; b=qo9txFon3sLrHqGEyqHIeO+pMJd6Cc3swWnrLEFtNtfFC6WB8nlmvATw6tc6y5UwMP HCn0cSqoLP+o7mHRxA53xUChrbt2wucJ+XYB+Bso0acG0EZ6RzLsQX9/CJPRCxiGVHeL RAEmoaPZHJvQ4hYrLxXXzbpvm1fVaER0e7JJF2DsUkQgMkQBd+tnbdHYg6q/rzdcNigH tLkgKv7dWUWJMZA4Pr7fnagYsQ3UmEyaCW20KgIEhK0WTid4qjKZJm4eOU5S1b12J6w4 3f4ftV2PistqHWIOnOCUJ/tO9xLnbuV2/7mbbiDAlvmCHEs9RF0p9RZfCc2N1fyXAm4I DpQw== 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:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=H2LsdSIcOD3EbNBRpg2Uztk/spKARNPgqOaMONDlAzI=; b=QBpRa3E3PHsAfypZZbxdTicLszs34t+CX1HIX9WDlZ/FyyZxkinUoeS1bMS1LMjuPJ nmfM0l+TRd43H3EPin3E/uWMO+UhiGxyd4lZSuUnF9XCWGeT06iwki24N9mzziHBxjln wQ6cwlGaxSRG5pZocxk2FNpnDYb0wcxEl+kgkHF43S0aA+DxN+Q9Vd+WnX/f6MRdckuN p8TV3DzL2nLsVo30sFfSUKd03kvSHvUdCoZd81r9JObawuj0EJZTA+cb5seC3Eg5ATI9 lcX7SreOq+q7PbM5hWGTIllQxcvuEtfRSXyXfHsiK26f5FFIoxtU/jaudbizhPZxMBN4 KI+w== X-Gm-Message-State: AOPr4FUG7uce6fVOFpvDMNkltCYAGs5GWAr+28rCcqbTrBXLDmFeJ2/HBXYATmK1EaYInA== X-Received: by 10.25.76.68 with SMTP id z65mr4810237lfa.49.1462384815367; Wed, 04 May 2016 11:00:15 -0700 (PDT) Received: from [1.0.0.7] ([109.196.196.224]) by smtp.gmail.com with ESMTPSA id s72sm806160lfe.31.2016.05.04.11.00.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2016 11:00:14 -0700 (PDT) Subject: Re: Docbook 5.x To: =?UTF-8?Q?J=c3=bcrgen_Purtz?= , pgsql-docs@postgresql.org References: <57179283.6080704@purtz.de> <20160503193441.GA61759@alvherre.pgsql> <572A0AD2.2070909@purtz.de> <572A1089.7030004@gmail.com> <572A28D4.6060702@purtz.de> From: Alexander Law Message-ID: <572A38AD.80007@gmail.com> Date: Wed, 4 May 2016 21:00:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <572A28D4.6060702@purtz.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 04.05.2016 19:52, Jürgen Purtz пишет: > On 04.05.2016 17:08, Alexander Law wrote: >> As was stated in the aforementioned thread, solution 2 can be much >> (8x) faster with some xslt optimizations, but I think now we should >> outline some roadmap before we start to prepare patches and so. >> Maybe we should convert to XML with DocBook4 at first step? >> Then, once we get everything stabilized, we can upgrade to DocBook5. >> Shouldn't we decompose the conversion procedure, so we could perform >> fully automatic conversion without any manual changes, and then fix >> non-valid situations, you described before? > > Hello Alexander, > > I havn't seen your xslt optimization so far. What have you done? Where > can I find the optimized script or a description? It was attached to the message: http://www.postgresql.org/message-id/562E061B.1090809@postgrespro.ru > "Divide and conquer" is a good strategy and people use it in many > cases. As you have stated, there are two major steps: from db4-sgml to > db4-xml and from there to db5-xml. In parallel to the second one we > shall migrate from dsl scripts to db5-xslt scripts. Your idea to go > step by step and stabilise at the intermediate level is good in > general. But in this case it may be unnecessary. The first step is > very small. It consists mainly of the elimination of shorttags and > empty elements. This is a pure formal act without risk. If we would > stop at this point, people are forced to switch their environment, eg > .emacs from db4-sgml to db4-xml - and after the second step to > db5-xml. This is possible - but the twice changing will bring > (possibly) more confusion than advantages. The real challenge is the > second step as it implies some manual modifications (entities, > non-valid markup in sense of db5-schema) and a switch to a different > output chain. Maybe we can live for a while with some files, which are > not valid against db5-schema - as far as the output chain produces > correct results. By first step I mean SGML->XML conversion (while staying with DocBook4). It's not small, IMHO, as it involves all the doc/sgml contents replacing (with doc/xml or alike) and updating makefile (replacing 'html' target with 'xslthtml' and so on). Though it can (and should) be performed as one commit with using one conversion script. The advantage of "baby steps" for me is an opportunity to play safe. In fact it's the question of balance between amount of redundant work and manageability of the conversion. IMO, amount of redundant work is not so large as: 1) we should convert and sgml->xml anyway 2) we can use existing makefile's targets 3) we should update documentation on documentation ([1], [2]) anyway. [1] http://www.postgresql.org/docs/9.5/interactive/docguide-build.html [2] http://www.postgresql.org/docs/9.5/interactive/docguide-authoring.html Alexander Lakhin -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs