Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axfrJ-0004zM-WC for pgsql-docs@arkaria.postgresql.org; Tue, 03 May 2016 19:19:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axfrJ-0007wE-I7 for pgsql-docs@arkaria.postgresql.org; Tue, 03 May 2016 19:19:49 +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 1axfrI-0007vp-OF for pgsql-docs@postgresql.org; Tue, 03 May 2016 19:19:48 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1axfrE-0001ok-PB for pgsql-docs@postgresql.org; Tue, 03 May 2016 19:19:47 +0000 Received: from [192.168.178.26] ([84.165.194.12]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MXFZN-1bC8BU0Ko9-00WHNs; Tue, 03 May 2016 21:19:41 +0200 From: =?UTF-8?Q?J=c3=bcrgen_Purtz?= Subject: Re: Docbook 5.x To: Simon Riggs , pgsql-docs@postgresql.org References: <57179283.6080704@purtz.de> Message-ID: <5728F9CC.7050402@purtz.de> Date: Tue, 3 May 2016 21:19:40 +0200 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: Content-Type: multipart/alternative; boundary="------------020804080809070105090108" X-Provags-ID: V03:K0:YV/ahsf5laWpVvmzwmofkEkaMOOcBZtelgaI3cKJBGfFQ8KD2T6 H1G5GZGfTlXv7F3OMJryAHiGLd+8I1pWzM4v4WXESDvoE5YoEawRannMvOIu0/rSYTxuRZX oWwkRI6wF2FKhyN15BlX7uOkqr4rUdf3AUfevoqMHv+LV8OPThkOLxfRGV6WJczOyR3C55Y kCvCIID1Y4Gsl/6h4myzg== X-UI-Out-Filterresults: notjunk:1;V01:K0:2WhICMMS2lU=:b3Qg13vTcnKi9SU/UoV723 GazRLeaBN18PZiyGnQbBlagmejORhJzA10awo93UvhUI/phD1+sP1dcnQDDZ+zVaT2Aelu4OS NKvJZrudRXPPRH35NWCtof4W7E0wTpvC5XjuRyzySO0w+MJcwWe452v0mGmN6eZzVztH3272t /+FfWG/KJDZayYrhapX8jOJtAcY/jY8JaMYgYqCI76EZVc5NHZ0enuppZ8attHK3mDGO/i8e0 3J4l22YybZAmSug5Dqs23LdESNWE54sw6roQ4hFHvXAbc5jn/WsG98hTMIq9ChzsfaUs5+yhY XcwxEXeZhFHm0QN0U4BKfXoCscHkTDcsg0twMKr/BJ/SoX7ECMG/aMmjJM4z5gLfcxKU1VCsA 1+grFqk6/hQAPV7pvcrZM8TH25pZ/vzIOOMXlXOLTYnEONXb2Iq+3bxTWkcoOx274d1Re3Ysb o7zy9zmku4G+WN/OwnxFKmJyt4Jm9onC76dzOfRZWQ2UXKjSphKknzK4nlmA9FO33bsQw6Obj ltvii6+QRb8mACIK4tvKWulMhBgRdA1PNvFOLKtWsenIXLKBkRcB82k3IMaDqCVJWoEjUo1ew eKrEoGPBwUAxIafdWXF1dR1/rK3NeyfVNl5LERXQ3lMMi9DrW/KZOO7OJEDb4zh1b4NcRyTjt rovnVyzpMf8GN26pkKgdYiU4VAbsIlk4Mf64F/iCe1uVMjaH8VDmWlxDELok3puTQqqKfTgfx eggAVOwstJ1RMXgd X-Pg-Spam-Score: -2.6 (--) 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. --------------020804080809070105090108 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello, the conversion of PostgreSQL documentation from Docbook 4.x to 5.x consists of the following steps: 1. pure sgml --> xml conversion (done, Perl script) 2. 4.x markup --> 5.x markup (done, Docbook standard migration script) 3. post-processing of 5.x files (done, Perl: xi:include, entities, ...) 4. generate the complete file postgres_all.xml with xmllint (done) 5. generate online documentation (html, man, text) 6. generate print documentation (rtf, pdf) 7. adopt Makefile to the new situation After step 3 we have well-formed xml files, most of them are valid against Docbook 5.0 xsd. Actually the following non-valid situations occur: * a lot of unknown xref targets, as the target exists in a different file * 4 remaining sgml-entities: standalone-xxx and include-xxx * some markups, which are not valid in 5.x, mostly with and . This must be resolved manually (5.x offers comprehensive possibilities for very detailed markups with and ) Steps 5 and 6 implies the replacement of our dsssl script with xslt scripts. I guess that this is much more difficult and lengthy than everything else I have done in this project so far. Furthermore I don't have any knowledge about dsssl. And this is the reason why I write this mail. Is anybody out there who can support me for the dsssl --> xslt conversion - or at least can answer questions like: * Is our file stylesheet.dsl written from scratch - or is it derived from any docbook 1/2/3/4.x generic stylesheet? * Which person has developed this file? * What is the role of the *.xsl files in the sgml-directory and how do they collaborate with stylesheet.dsl? Regards, Jürgen On 20.04.2016 20:41, Simon Riggs wrote: > On 20 April 2016 at 15:30, Jürgen Purtz > wrote: > > What I have done so far is: > > * Conversion of sgml files to valid xml syntax with a perl > skript. I failed to use 'osx' or 'spam'. > * Conversion of these xml files to Docbook5.x format using > xsltproc and Docbooks xslt-migration skripts. > * Creation of html files using xsltproc and Docbooks xslt skripts. > * Creation of fo files using xsltproc and Docbooks xslt skripts. > * Creation of pdf files using fop. > * The conversions needs less than 10 minutes on a Intel i5 > processor. > > So you believe you have/can convert between the two formats > accurately, so we can change things in a single commit? > > What verification is offered? Possible? > > And that is ready to go now? Will you post your perl script, or the > patch? Other projects use the same file formats, e.g. Slony, XL etc > > If an automatic migration is possible do we need to change at all? > > -- > Simon Riggs http://www.2ndQuadrant.com/ > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --------------020804080809070105090108 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hello,

the conversion of PostgreSQL documentation from Docbook 4.x to 5.x consists of the following steps:
  1. pure sgml --> xml conversion (done, Perl script)
  2. 4.x markup --> 5.x markup (done, Docbook standard migration script)
  3. post-processing of 5.x files (done, Perl: xi:include, entities, ...)
  4. generate the complete file postgres_all.xml with xmllint (done)
  5. generate online documentation (html, man, text)
  6. generate print documentation (rtf, pdf)
  7. adopt Makefile to the new situation
After step 3 we have well-formed xml files, most of them are valid against Docbook 5.0 xsd. Actually the following non-valid situations occur:
  • a lot of unknown xref targets, as the target exists in a different file
  • 4 remaining sgml-entities: standalone-xxx and include-xxx
  • some markups, which are not valid in 5.x, mostly with <synopsis> and <function>. This must be resolved manually (5.x offers comprehensive possibilities for very detailed markups with <funcsynopsis> and <cmdsynopsis>)
Steps 5 and 6 implies the replacement of our dsssl script with xslt scripts. I guess that this is much more difficult and lengthy than everything else I have done in this project so far. Furthermore I don't have any knowledge about dsssl. And this is the reason why I write this mail. Is anybody out there who can support me for the dsssl --> xslt conversion - or at least can answer questions like:
  • Is our file stylesheet.dsl written from scratch - or is it derived from any docbook 1/2/3/4.x generic stylesheet?
  • Which person has developed this file?
  • What is the role of the *.xsl files in the sgml-directory and how do they collaborate with stylesheet.dsl?
Regards, Jürgen



On 20.04.2016 20:41, Simon Riggs wrote:
On 20 April 2016 at 15:30, Jürgen Purtz <juergen@purtz.de> wrote:
 
What I have done so far is:
  • Conversion of sgml files to valid xml syntax with a perl skript. I failed to use 'osx' or 'spam'.
  • Conversion of these xml files to Docbook5.x format using xsltproc and Docbooks xslt-migration skripts.
  • Creation of html files using xsltproc and Docbooks xslt skripts.
  • Creation of fo files using xsltproc and Docbooks xslt skripts.
  • Creation of pdf files using fop.
  • The conversions needs less than 10 minutes on a Intel i5 processor.
So you believe you have/can convert between the two formats accurately, so we can change things in a single commit?

What verification is offered? Possible?

And that is ready to go now? Will you post your perl script, or the patch? Other projects use the same file formats, e.g. Slony, XL etc

If an automatic migration is possible do we need to change at all?

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

--------------020804080809070105090108--