For XML

<..latex.ltx non trace configurations..>
 \def\g:let#1#2{\global\let#1=#1}
 -_-_-

<..latex.ltx latex edit commands..>+
 \def\g:let#1#2{\advance\tmp:cnt by1
    \ifx \:temp\empty
        \edef\:temp{\noexpand\pend:def\noexpand#1{\noexpand
          \a:trc List(#2)\the\tmp:cnt\noexpand\b:trc}}\:temp
        \edef\:temp{\noexpand\append:def\noexpand#1{\noexpand
          \c:trc List(#2)\the\tmp:cnt\noexpand\d:trc}}\:temp
        \let\:temp=\empty
    \fi
    \global\let#1=#1}
 -_-_-

The four parts indicate what should appear at the head, before each label, after each label, and at the tail of the lists.

In the default setting, the lists that are not referenced through block-environments are supposed to create no code. We made this choice because there are many trivial lists that just create indentation in LaTeX that is undesired in html. The outcome of such lists would probably have been ‘<DL><DT><STRONG></STRONG><DD>.....</DL>’.