Lots of duplicate code in docbook
Lorenzo Bertini
lorenzobertini97 at gmail.com
Mon Mar 21 12:11:22 UTC 2022
Il 21/03/22 11:49, Daniel ha scritto:
> On 2022-03-21 10:55, Lorenzo Bertini wrote:
>> 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
Sorry, I meant that code duplication is probably due to the different
maintainers for the two formats and the fact that one is much older and
has been untouched for a long (LyXHTML). I remember Thibaut saying he
branched from LyXHTML knowingly, even if it would have meant rewriting
some stuff. Looking at your examples, this might be the case.
I think a common interface to write XML elements like tables, tags, etc,
would help reduce this, but it will be a lot of effort. I'll wait for
Thibaut and Richard to chime in on this.
Lorenzo
More information about the lyx-devel
mailing list