Re: Allow <info> as root element?

Thomas Schraitle <[email protected]> Tue, 29 Nov 2022 22:03:29 +0100
Newsgroups gmane.text.docbook.misc
Message-ID <[email protected]>
Hi,

On 28.11.22 11:10, Norm Tovey-Walsh wrote:
>> currently, DocBook v5.2 (and previous versions) allows several elements=
 as root
>> element. However, it is currently not possible to use info "alone". Any=
 reasons
>> why?
>
> I can see how reusing metadata might make sense in some environments. I
> won=E2=80=99t speak for anyone else on the TC, but I tend to think of it=
 as
> being attached to something. It provides metadata for an element, and so
> it=E2=80=99s not immediately obvious what it means sitting on its own.
>
> It isn=E2=80=99t that I thought there was any reason to forbid it so muc=
h as it
> never occurred to me that it would be useful.

I know, this use case may be not very common. Still I think, if you use
assemblies and share content it might become more helpful, especially when=
 you
want (or need to) validate on its own.


>> Imagine you would like to share some common meta information among seve=
ral
>> articles:
>
> There=E2=80=99s obviously nothing that prevents you from doing this. You=
 can
> XInclude this metadata file into several articles and then validate
> them.
>
> It would be a very simple Relax-NG customization to allow info in the
> =E2=80=9Cstart=E2=80=9D pattern then it could be validated independently=
.

That's true, but that wouldn't be DocBook anymore. ;) Thus validating woul=
dn't
work.


=2D-
Gru=C3=9F/Regards
   Thomas Schraitle