Lots of duplicate code in docbook
Daniel
xracoonx at gmx.de
Mon Mar 21 10:49:51 UTC 2022
On 2022-03-21 10:55, Lorenzo Bertini wrote:
> Il 21/03/22 10:37, Daniel ha scritto:
>> I have no knowledge about docbook. I never used it. I was just
>> wondering why so code is duplicated in the docbook functions. For
>> example, Tabular::docbookRowAsHTML and Tabular::docbookRowAsCALS seems
>> to duplicate much of Tabular::xhtmlRow. Isn't that an issue when
>> adding new features? Why not have common functions with only parts
>> that differ or so?
>>
>> Daniel
>
> There is some degree of duplication between Docbook and LyXHTML code. I
> think its because the latter is much older and Thibaut had to write its
> own to produce Docbook. This has been brought up also when addressing
> MathML production. I agree LyX needs more standard XML generating
> functions.
>
> Its part of a larger theme about XML production, and there was a talk
> sometime ago about using a library for this.
I might be misunderstanding your comment. But actually, I wanted to
point not to the way XML is generated but more to the actual content,
for example, the specific attributes of an element which seem to be
duplicated. But maybe that problem is somehow dependent on the general
generation of XML?
Daniel
More information about the lyx-devel
mailing list