Re: BUG #18760: ../doc/src/sgml/postgres.sgml:24: element book: validity error : No declaration for attribute id of

Andrey Teplitskiy <a.teplitskiy@postgrespro.ru>

From: Andrey Teplitskiy <a.teplitskiy@postgrespro.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>, "David G. Johnston" <david.g.johnston@gmail.com>
Cc: thomas.petazzoni@bootlin.com, pgsql-bugs@lists.postgresql.org
Date: 2025-09-11T14:34:13Z
Lists: pgsql-bugs
This error occurs because the docbook-xsl package is missing, which is 
required in the documentation. After installation, the build is 
performed correctly.

> "David G. Johnston" <david.g.johnston@gmail.com> writes:
>> The only error that really matters here is:
>> I/O error : Attempt to load network entity:
>> http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
>> ../doc/src/sgml/postgres.sgml:22: warning: failed to load external entity "
>> http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
>> Everything else stems from that.
> Ah, indeed.  Our docs are fairly clear[1] that you need a
> locally-installed copy of the DocBook DTDs to build the docs.
> It used to be the case that xmllint and friends could pull down
> the DTDs using the given URL, but that stopped working a couple
> of years ago[2].  (Experimenting just now by removing the -nonet
> switches, it seems like the failure symptoms are a bit different than
> they were in 2023.  But it still fails, so the details are academic,
> except maybe to someone who could fix www.oasis-open.org.  Which is
> not us.)
>
>>> Passing -Ddocs=disabled -Ddocs_pdf=disabled does not fix the issue:
> If real, that's a bug in our Meson scripts, but evidence seems lacking.
>
> 			regards, tom lane
>
> [1] https://www.postgresql.org/docs/current/docguide-toolsets.html
> [2] https://www.postgresql.org/message-id/flat/CAJ7c6TO8Aro2nxg%3DEQsVGiSDe-TstP4EsSvDHd7DSRsP40PgGA%40mail.gmail.com
>
>
>
>
-- 
Andrey Teplitskiy
Postgres Professional