Re: fixing bookindex.html bloat

2022-02-15 Thread Andres Freund
On 2022-02-15 11:16:12 +0100, Peter Eisentraut wrote: > On 15.02.22 00:06, Andres Freund wrote: > > On 2022-02-14 23:06:20 +0100, Peter Eisentraut wrote: > > > For the xlink business, I don't have a better idea than you, so your > > > workaround proposal seems fine. > > > > K. Will you apply your

Re: fixing bookindex.html bloat

2022-02-15 Thread Peter Eisentraut
On 15.02.22 00:06, Andres Freund wrote: On 2022-02-14 23:06:20 +0100, Peter Eisentraut wrote: The attached patch cleans up the xhtml namespace declarations properly, I think. Looks good to me. For the xlink business, I don't have a better idea than you, so your workaround proposal seems fin

Re: fixing bookindex.html bloat

2022-02-14 Thread Andres Freund
Hi, On 2022-02-14 23:06:20 +0100, Peter Eisentraut wrote: > The attached patch cleans up the xhtml namespace declarations properly, I > think. Looks good to me. > For the xlink business, I don't have a better idea than you, so your > workaround proposal seems fine. K. Will you apply your patch

Re: fixing bookindex.html bloat

2022-02-14 Thread Peter Eisentraut
On 14.02.22 18:31, Peter Eisentraut wrote: Yeah, that is currently clearly wrong.  It appears I originally copied the wrong namespace declarations from examples that show how to customize the DocBook stylesheets, but those examples were apparently wrong or outdated in this respect.  It seems w

Re: fixing bookindex.html bloat

2022-02-14 Thread Andres Freund
Hi, On 2022-02-14 18:31:25 +0100, Peter Eisentraut wrote: > > The reason that we end up with so many more xmlns:xlink is just that without > > our customization there ends up being a single > > http://www.w3.org/1999/xlink"; class="index"> > > and then everything below that doesn't need the xmlns:

Re: fixing bookindex.html bloat

2022-02-14 Thread Peter Eisentraut
On 13.02.22 21:16, Andres Freund wrote: The reason for the two xmlns= are different. The xmlns="http://www.w3.org/1999/xhtml"; is afaict caused by confusion on our part. Some of our stylesheets use xmlns="http://www.w3.org/TR/xhtml1/transitional"; others use xmlns="http://www.w3.org/1999/xhtml";

Re: fixing bookindex.html bloat

2022-02-13 Thread Andres Freund
Hi, On 2022-02-13 12:16:18 -0800, Andres Freund wrote: > Waiting for docbook to fix this seems a bit futile, I eventually found a > bugreport about this, from 2016: > https://sourceforge.net/p/docbook/bugs/1384/ Now also reported to the current repo: https://github.com/docbook/xslt10-stylesheets/

fixing bookindex.html bloat

2022-02-13 Thread Andres Freund
Hi, Sometime last year I was surprised to see (not on a public list unfortunately) that bookindex.html is 657kB, with > 200kB just being repetitions of xmlns="http://www.w3.org/1999/xhtml"; xmlns:xlink="http://www.w3.org/1999/xlink"; Reminded of this, due to a proposal to automatically generate d