Lots of duplicate code in docbook
Lorenzo Bertini
lorenzobertini97 at gmail.com
Mon Mar 21 09:55:25 UTC 2022
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.
More information about the lyx-devel
mailing list