Re: Canonical DocBook

Norm Tovey-Walsh <[email protected]> Mon, 28 Feb 2022 07:55:56 +0000
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
Frank Steimke <[email protected]> writes:

> Thank you very much for your comments and suggestions, Norm. Please allow a few remarks.
>
> "After a while, this starts to feel less like a canonical DocBook and
> more like a structural interchange format".
>
> Yes, based on DocBook. After all, the result of standard steps 1 to 7
> is almost a valid DocBook Document, isn't it? That is, with the
> exception of a few additional attributes in a separate namespace (e.
> g. ghost attributes in tables). But it's true that this format is not
> intended for authors. They keep writing the way they do today, and the
> interchange format is generated by applying the xslTNG steps.

For clarity, the output of step 7 in my list is still absolutely valid
DocBook. The ghost elements and ghost attributes technique (that turns
up in both tables and callouts) are purely transitory forms used in
formatting. I was just observing that you might want an even more
normalized intermediate format…

> No block Elements within para
>
> That's in my 80% because neither ODF nor OOXML do allow tables or
> lists in paragraphs. I would see a great benefit when the DocBook
> based structural interchange format would allow easy transformation
> into office Standards, especially ODF.

HTML doesn’t allow it either, which is why I’ve mostly trained myself
not to do it. But it irritates me on a regular basis:

<para>As you can see:
<orderedlist>
<listitem>
<para>Logically speaking, paragraphs can contain lists and tables.
</para>
</listitem>
<orderedlist>
<listitem>
<para>Making “As you can see:” as separate paragraph is just wrong.
It isn’t even a complete sentence!
</para>
</listitem>
<listitem>
<para>The same is true of what follows.
</para>
</listitem>
</orderedlist>
demonstrating that this paragraph logically contains the preceding
list.</para>

Nothing we can do about formats that don’t allow it though. Out of
curiosity, ODF and OOXML have any kind of neutral wrapper that can
contain them, like HTML’s div?

As David pointed out in another follow-up, unwrapping that structure
changes what an xml:id on the paragraph would identify. Not such a big
deal for linking into a document, but potentially catastrophic for
XInclude or transclusion.

                                        Be seeing you,
                                          norm

--
Norman Tovey-Walsh <[email protected]>
https://nwalsh.com/

> There is only one difference between a madman and me. I am not
> mad.--Salvador Dali
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE1ury//rzuvqf7fN/hVWfHhJMAHkFAmIcga8ACgkQhVWfHhJM
AHlvTxAArKG1dvaZNDl4R1Lhov+nRPAEaQ0ugU+nRTYbUPGjAaOcpcy7Sb+N09Ao
0uI+KSuvtKUpBhiHKCZsKFU2PPPgNwteZy2UjJPi6jG3q4pyHtTLfD7n2RSGNVbl
oxvd32oCON8U4sdgEpCMIm3nybmsQbXoA95u7ovK7rDjPnW5SMoKj10+QV6D9RRL
H1G0Q6SYR1KSAX4VnR+/aB6ut+X9HJBst2Bq9i6n3vmLb7UTtm3rwaoJ/WTQcfXf
o9k1cuWde24/YODKknGsMTm+YSjH3MqNKCvs2jZTss+jMVGGSt4lKRlxLDaGAPIu
PY4Lg+qXz74cCnIHEdMyChCJsIfv0kmZBmOyNmOVEYB78KYfEOARTjnprlRbhXRY
TUsHRibiS4JTWIRQo5RDkyxl6mt34FNNlHA/rDl4fA54Sb8tg5vtwkVjXRH+vsre
l488iNSnJee3H+mgCxM81bFW4WtKoCsUaxlQ+WRp+3SX2F6cyC+61pdVOkkaJKDG
07KjzazQldw+2migq5MIHlSrSwV/OHD1loMUWQUZicVE+jIvuTZtl1JUik8LHwPU
+wc6YBzCxF5lJVWFuvU2ns+QSaiHOQlAkO14jPaqbaBxVmbdy2R2GaIz0P4WnfA4
5RgwKYCMmd3y5NQSMfMl6hGMZpYaiBHfKY0AJ0ajqMNZMqKVjL8=
=guvj
-----END PGP SIGNATURE-----