Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcwqy-0007Lc-Rr for pgsql-docs@arkaria.postgresql.org; Fri, 28 Dec 2018 18:27:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcwqx-0002vU-9p for pgsql-docs@arkaria.postgresql.org; Fri, 28 Dec 2018 18:27:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcwqx-0002sx-0f for pgsql-docs@lists.postgresql.org; Fri, 28 Dec 2018 18:27:23 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcwqp-0001RU-3o for pgsql-docs@lists.postgresql.org; Fri, 28 Dec 2018 18:27:21 +0000 Received: from [192.168.178.23] ([77.12.20.225]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M2OEq-1gdUXp1ONa-003yaA for ; Fri, 28 Dec 2018 19:27:11 +0100 Subject: Re: First SVG graphic To: pgsql-docs@lists.postgresql.org References: <521932ae-c73d-760d-d973-c980a2d4af82@purtz.de> <20181130223631.GA17824@momjian.us> From: =?UTF-8?Q?J=c3=bcrgen_Purtz?= Message-ID: <0e0b8e73-cc7c-0557-c76f-35d9592eb50e@purtz.de> Date: Fri, 28 Dec 2018 19:28:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181130223631.GA17824@momjian.us> Content-Type: multipart/alternative; boundary="------------76715D8EDAFBBA630DF2463C" Content-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FdS2UVnKlLpjLmVi9ijmiTx1fhb66fk= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------76715D8EDAFBBA630DF2463C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I failed to generate the "single HTML file". The default Makefile task, which creates multiple HTML files, works properly, because it confines itself to create links to SVG files. The SVG structure keeps hidden to the Docbook validation and processing - Docbook recognises only some additional links. What I have tried to generate a single HTML file is the use of xi:XInclude before validating and further processing. In this case the SVG structure is visible to Docbook. In general it is possible to use SVG within Docbook 4.x, if you switch the doctype to

I failed to generate the "single HTML file".

The default Makefile task, which creates multiple HTML files, works properly, because it confines itself to create links to SVG files. The SVG structure keeps hidden to the Docbook validation and processing - Docbook recognises only some additional links. What I have tried to generate a single HTML file is the use of xi:XInclude before validating and further processing. In this case the SVG structure is visible to Docbook.

In general it is possible to use SVG within Docbook 4.x, if you switch the doctype to

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook SVG Module V1.1CR1//EN"
                         "http://www.oasis-open.org/docbook/xml/svg/1.1CR1/dbsvg.dtd" 

This is an Docbook 4.x extension (https://docbook.org/specs/wd-docbook-svg-1.1cr1) for SVG-integration. But it's only a working draft from 2004, it never reached the status of an official OASIS standard. As far as I have seen, it works (with some limitations), if the SVG data is an integral part of the xml/sgml source file. I failed to combine it with xi:XInclude. In opposite to this the combination of xi:XInclude, SVG, and Docbook 5.1 works well. In my opinion this results from the fact, that the structure of Docbook 4.x is based on a DTD, whereas Docbook 5.x uses Relax-NG (and generates xsd files out of rng). DTDs natively are not namespace-aware, you must do some trickery to handle namespaces. Docbook 5.x is not only namespace aware, it natively includes definitions for SVG and other important standards like MathML.

My questions to the community are:

  • Does anyone has an idea how to generate single HTML file in the actual situation?
  • Shall we delay the SVG integration until we have switched to Docbook 5.x? This task is a great step, but it must be done in any case, because Docbook 4.x is outdated since many years. Btw: Because of other problems (https://github.com/docbook/docbook/issues/74) it is likely that we cannot use 5.1 but have to wait for the upcoming release 5.2.

Kind regards

Jürgen Purtz


--------------76715D8EDAFBBA630DF2463C--