Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c71Le-0005fW-Uv for pgsql-docs@arkaria.postgresql.org; Wed, 16 Nov 2016 14:38:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c71Le-0006El-Hd for pgsql-docs@arkaria.postgresql.org; Wed, 16 Nov 2016 14:38:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c71Ld-0006Cd-FE for pgsql-docs@postgresql.org; Wed, 16 Nov 2016 14:38:01 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1c71La-00022I-5A for pgsql-docs@postgresql.org; Wed, 16 Nov 2016 14:38:00 +0000 Received: from [192.168.0.133] ([85.117.112.13]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPSA (Nemesis) id 0Mb5Ch-1cNADo2L8N-00KipO for ; Wed, 16 Nov 2016 15:37:55 +0100 Subject: Re: Docbook 5.x To: pgsql-docs@postgresql.org References: <57179283.6080704@purtz.de> <20160503193441.GA61759@alvherre.pgsql> <572AD007.60900@gmail.com> <5752E599.2090505@gmail.com> <576d0623-a89c-b3de-e321-dc48a579ff1a@2ndquadrant.com> <4adecfc6-2f2e-2ff2-bfa3-58b7d397227b@gmail.com> <8f227b2a-5093-8d99-85da-ea00e18343f6@gmail.com> From: =?UTF-8?Q?J=c3=bcrgen_Purtz?= Message-ID: <542a25dc-d951-78de-45fa-ba0de06834fd@purtz.de> Date: Wed, 16 Nov 2016 19:40:33 +0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:dtm8Z9h1LkOGIdzYK7JeFn+cr7t4+TrIaOSsIEgalzaij5Vc+UX zGF0AA2f849D0fDtNS2Tr7c8NHUGHGvDqSUbZxMNMoV1bRM/IwJnzkFOiLa3spnB1JsszKU R4z4ZgNPsvozqu9gejO6PmCqBhRLNDl562tF4iano2RUidbjHtFv783daTzmaqE1MUkBzOp 7+SDINh+UMZYSgrCttPGg== X-UI-Out-Filterresults: notjunk:1;V01:K0:HNZhcsRiOBk=:dIX6XjP0Z/Z0n07qL0Et1A YIdWDgbBGCTgStAygaTW0tJzDORLqPFVOKCcIOSOpIvEL19VrwAzGEalunMtFGkg3CcUkEJ00 NC6YN4zW+YdaCM6uJKIy/64vcjIr8iR20YAbekFvVAJsEOO2nSjlVz7HASHFwv97tw5SkDldc maaFA6AYPqncrmRP3mqoW2hAaR8nzRZoZTmGhJ0EviRLGQc/MtVlg4dk4SCMLoDRND2P9ySAj 07ee0DxXZNHPFpHszOKL7noLb4VhdvZSH9U+EYG7ZK0a/rkcj8eK8UuB2AsDQm4InMb+zIrJK 1xJB4y6G2uCtYol6Lk0cETMOcf9t30b6SWWIrsKyiUb87UINob52K6bfPIj2NoAVn2aJgroio 5FjfTrXfijlluRJfGmYA4t1XOQwREdtQUtuatcH8HKroPMaKxrJ9E8osBJ8NlXLEJGLOooLVP fpJ1RaLr+eSb3gVJ3ki6PA+6ANvkgpKoQup1ISZ5cgBnOwDzqNq5uScrXgQkrLebdwg0eMgMo YYyzlw8GysQmgFRrKeSzW7P9971j4Rj7JRMdr6ue/5Xn5OSychT8gUeUrLu81JAoWoLRtm10p ulMd7tdeRneMw5oD522CtxPGjcUKoDNUkCttm0sol+qb9weN8pbA01amlQnT/MJBbq3F89tRE i0XdgV4FF25kjpO54IlpSGdAhXhwzv9EaVe3njZOc/HsWje4zCg4qMOeyeDZUKYySTAfRMjPJ LpX2HrZNaXVnGl92EARipX3VcvIgjexJ5MzbXQ== X-Pg-Spam-Score: -1.4 (-) 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 > Hello Peter, > > I saw that you committed the patch to switch the html build to XSLT by > default. > So It seems, now we can continue the move to XML. > I'd suggest to move in several steps. > Please see the attached scripts. > The main script is 7_check_conversion.sh. It performs all the > conversion and checks whether the html output is the same. > I suggest to split conversion in three commits. > Commit#0 is for manual corrections - it replaces "<" with "<" and > so on in some sgml's and it doesn't affect the build or outputs. > It needed just for the next step - automatic conversion. These changes > to sgml's are countable and observable. > > Commit#1 performs conversion of all SGML's to make them compatible > with XML (as much as possible). (Thanks to Jurgen for his sgml2xml.pl > script.) > These changes to sgml's are massive, but they are produced > automatically, so we need just to check the script and make sure that > the output is the same. > After that commit we still can use SGML build. > > And the last commit, commit#2 is for switching to XML. At that point > doc/src/sgml renamed to doc/src/xml, build environment modified and > cleaned, but changes in sgml/xml are minimal, so we can observe and > check them. > > After the commit#2 we get all our docs in XML (DocBook 4.2) and can > build it just as we did with 'make html/man/...' before. > Maybe the commit#2 should be applied later, but commits #0 and #1 are > not intrusive and can be applied anytime. > > Best regards, > Alexander > Hello, I greatly welcome the next steps toward XML. In addition to the submitted scripts I want to point out that we will get validation error messages if the following three things coincide: a) Docbook 4.2, b) use of XInclude, c) a different directory (eg: 'ref'). The xi:base attribute (to specify a different directory) was introduced into the Docbook DTD with version 4.3. Older DTDs cannot use it without manual changes to the DTD, please see: http://www.sagehill.net/docbookxsl/ValidXinclude.html. To overcome this shortage I suggest the use of Docbook 4.3 (or 4.5) - as a separate commit or implicitly with commit #2. As far as I have seen, all converted documents validate against 4.5. Kind regards Jürgen Purtz -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs