OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Canonical DocBook


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.

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.

Image size and scaling attributes

You are right, this is more a question of the application or tool.

I could spin off the normalizing stylesheets, steps 1 to 5 above, optional 6 and 7, into a separate package. And I suppose, that could be documented.

That would be great. Is there a way i can help?

Thanks,

Frank Steimke


Am 27.02.22 um 14:42 schrieb Norm Tovey-Walsh:
Our own stylesheets are therefore divided into at least phases. First,
[â]
As far as I can see, the XSL 3 stylesheets for XslTNG are also similar
in structure. 
Yep. The xslTNG stylesheets go through several standard stages:

1. Normalize the logical structure (get rid of entity refs, basically)
2. Expand XIncludes
3. Upgrade from 4 to 5 if the input isnât in a namespace
4. Process transclusions
5. Normalize the markup
6. Process annotations
7. Process external link bases

Plus a couple more that are conditional.

So there is a point in these stylesheets where the input document is
in a sort of "canonical DocBook". However, this canonical format is
not documented.
Thatâs true.

My suggestion is that the DocBook TC standardize and document the
canonical DocBook format. Subsequently, stylesheets for transforming
The problem with a documented canonical format is that, like a âminimal
subsetâ, you could probably get broad agreement on 80% of it, but no two
people would have the same 80% in mind.

Another problem is that no one wants to author in the canonical format.
Itâs the format that removes all markup minimization.

I could spin off the normalizing stylesheets, steps 1 to 5 above,
optional 6 and 7, into a separate package. And I suppose, that could be
documented. I donât know if thatâs a TC activity or not though as itâs
pretty application specific.

para/simpara: canonical DocBook should only support simpara. para with
block-content (tables, lists) must be transformed into a sequence of
simpara and other block-content.
Thatâs in your 80% is it :-).

Tables: In canonical DocBook, each table must have table column
specifications. Default values are replaced by explicit values.
[â]
which column it starts and where it ends without complex calculations.
Content of table cell must be element only.
It sounds like what you really want here, isnât even CALS (or HTML)
tables. You want the completely explicit internal format that the xslTNG
stylesheets generate during table processing. They turn the entire table
into a perfectly rectangular grid, using âghostâ elements for cells that
are missing. 

Thatâs kind of true for a few of the other ideas you proposed, like the
inline markup.

After a while, this starts to feel less like a canonical DocBook and
more like a structural interchange format.

Images: Each image must have at least the attributes for image size
and scaling.
Getting those, if the author didnât provide them, requires extensions
and is even then only speculative. Iâm sure there are image formats I
canât parse. Authorâs really should provide them.

P. S. This text was translated with www.DeepL.com/Translator (free
version) from german language.
Wow. It did a remarkably good job. I would not, on a casual reading,
have suspected autotranslation.
                                        Be seeing you,
                                          norm

--
Norman Tovey-Walsh <ndw@nwalsh.com>
https://nwalsh.com/

Before you criticize someone, walk a mile in his shoes. That way, when
you criticize him, you're a mile away and you have his shoes.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]