Hi,
sorry for the late response.
Schimon Jehudah via lxml - The Python XML Toolkit schrieb am 24.08.25 um 12:06:
I think, that I have found the cause to the issue, or, at least, now I
know how to cause to the issue, and how to define it.
Issue
-----
Elements without text content would overlap.
Samples to experiment with
--------------------------
<nav id="xslt-navigation-posts">
<span id="xslt-navigation-previous"/>
<span id="xslt-navigation-proceed"/>
</nav>
<nav id="xslt-navigation-posts">
<span id="xslt-navigation-previous"></span>
<span id="xslt-navigation-proceed"></span>
</nav>
Result after processing
-----------------------
<nav id="xslt-navigation-posts">
<span id="xslt-navigation-previous">
<span id="xslt-navigation-proceed">
</span></span></nav>
This suggests that it might be the parser making this change. Could you
show us how you parse and process the data? A short code snippet would help.
Is this parsed as HTML? With which options?
How do you run the XSLT?
And, most importantly, which versions of lxml, libxml2 and libxslt are you
using? Does this occur with a binary wheel installed from PyPI or did you
build lxml locally?
I have detailed and linked to the relevant code.
https://git.xmpp-it.net/sch/Rivista/issues/6
That's a problem description but doesn't show me the code that triggers the
problem on your side.
Stefan
_______________________________________________
lxml - The Python XML Toolkit mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/lxml.python.org
Member address: [email protected]