Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6IGK-0004MN-UA for pgsql-docs@arkaria.postgresql.org; Sun, 22 Oct 2017 15:34:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e6IGJ-0008Cb-GI for pgsql-docs@arkaria.postgresql.org; Sun, 22 Oct 2017 15:34:03 +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 1e6IFu-0007XU-RI for pgsql-docs@postgresql.org; Sun, 22 Oct 2017 15:33:38 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e6IFm-0001K6-9c for pgsql-docs@postgresql.org; Sun, 22 Oct 2017 15:33:37 +0000 Received: by mail-lf0-x22f.google.com with SMTP id b190so17540087lfg.9 for ; Sun, 22 Oct 2017 08:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=lTIv2wNGpi3hRyRcitj7U3U7Bdob+PkpJKkXT1fz75A=; b=ZDEkl7ZdesF5MPdKzj74fxu+pXU+EaZXfgcFLHFtXDha7COYcdsQ8AmN52bMslHUOv l1SjgHsc8RYbgzwpljVnB8Epv9LKQwOP/NrNKnpyQZio2HJXIo1+pnjV3Y2/TlSLAWXD ddBlvmBUfwLdPqFE3oX1GJ6NF4RiOka8UDmDLeGvGMW9omkst908zJCBDSiDvSZt2PjF za/k7jbxLHM4E9ll37ubf1rvrDBrz9LyyBzZpkmrPEHeUkHkRqJuejk9CYrpK7lWQzB9 UItcvKj7TTtwhQYTTSJW1nYv2muQ0uGXy5XIGz4whS5zxxtNHiX9f5inRduqcvMC6k3w uG9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=lTIv2wNGpi3hRyRcitj7U3U7Bdob+PkpJKkXT1fz75A=; b=MN2a5ExnGXTT0YnaqvkNhmuh/DkeBk99RGCUAqVqerjRzElJ+3UOnPvuUNrC5k+rfE I43yNnxV6P13D8Re7YcFeGDlBHmzNlWkxQBAuj7Vj23CDfdHfFRao3nh6moJR0mV5Xkx 0YRu9bE6HA0sxd6rWSKCeOLLUY74N9Duzk7oBRk37/Sg0Exf6rjnIf/AHKf0Rv/EDYHA kfHrO8V8eGjGUI2ULW3J0fZOwrvda3LNjy1kQ8HxcAyY9INPM2Zvsl/pi9Cokg42VW+5 TZx+JL2mpFFIlWZZwwkbKCTGTiqOaURNSQGdcly/3IZ4dH2Vjeo+I26f8srRxSFpz1rM XkbA== X-Gm-Message-State: AMCzsaXfBN4DmCcS4nNTtCtWPHTUUjtaKmrKR+VR2/280bdBql3N0Rnd xCQfZirLaoSrmXtTutzVap49BQ== X-Google-Smtp-Source: ABhQp+TU+kULTzDHmEn+Qv3QsJcIoqokXTkwsuznfjYA9Cv4WcjX9HPU2tboAb7lBnTbwUlVX7YzpQ== X-Received: by 10.25.40.149 with SMTP id o143mr3604393lfo.237.1508686408731; Sun, 22 Oct 2017 08:33:28 -0700 (PDT) Received: from [1.0.0.7] ([178.155.4.15]) by smtp.gmail.com with ESMTPSA id g29sm1022896lfh.3.2017.10.22.08.33.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Oct 2017 08:33:27 -0700 (PDT) Subject: Re: backpatching documentation after conversion to XML To: Peter Eisentraut , pgsql-docs References: <609dc528-6eab-522d-5b7d-842bd83159e5@2ndquadrant.com> From: Alexander Lakhin Message-ID: Date: Sun, 22 Oct 2017 18:33:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <609dc528-6eab-522d-5b7d-842bd83159e5@2ndquadrant.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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, 21.10.2017 19:57, Peter Eisentraut wrote: > In a nearby message, Tom pointed out that the ongoing conversion of the > documentation sources from SGML to XML could/will cause problems when > backpatching. The changes made so far would merely cause merge > conflicts but there is an additional issue to consider that can cause > compatibility problems. Peter, are you going to rename all the *.sgml to *.xml (and to move the files from sgml/ to /xml directory) as I did? If so (I think it would be right), then backpatching without some modifications will be impossible anyway. > One workaround (other than being careful) would be to write > > > > and maintain that style until the last SGML-based version goes EOL. I've tried to write '' in start.sgml and got: /usr/bin/osx -wall -wno-unused-param -wfully-tagged -wempty -wdata-delim -winstance-ignore-ms -winstance-include-ms -winstance-param-entity -D . -D . -x lower postgres.sgml >postgres.xml.tmp /usr/bin/osx:start.sgml:32:63:E: end tag for element "XREF" which is not open It seems that this workaround will not work. (The xref tag in sgml considered as closed automatically.) > Another workaround would be to backpatch a check that greps for > something like '[^<]/>' in *.sgml and errors on that. > > (AFAICT, this is the last major issue impacting the conversion, so when > we have resolved this, this can go ahead.) > > Thoughts? I think we should make a script to backport doc/-related commits. So for each commit we want to backport we would need to split a "doc/" part and to convert it (move from xml to sgml, change a file extension, convert tags, the attributes case and so on...). Maybe some of the changes can be backported to simplify the script, but we will need to perform some processing anyway. I can write such a script if it can be useful. Best regards, ------ Alexander Lakhin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs