You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing this library I used a sample XML + XSLT from the Mozilla website. The library doesn't seem to work correctly with this example, although I haven't been able to determine why exactly.
Thanks for reporting this. I added the corresponding unit test in the codebase.
It's basically what was reported in #108 and #109: the logic handling text nodes is not great, and the problem happens because text nodes are overridden when they should not.
As I mentioned in the other issues, there are two problems to be solved here:
A separate logic between a normal text node pass (or what it is implemented today here) and the logic to write next nodes while applying a template.
I started thinking about the logic on this some time ago, but I didn't have the time to dedicate myself to this. I hope to get some time in the next weeks to plan a good algorithm and implement it. Your example should help me tremendously on it.
When testing this library I used a sample XML + XSLT from the Mozilla website. The library doesn't seem to work correctly with this example, although I haven't been able to determine why exactly.
Repro
Expected
Actual
The text was updated successfully, but these errors were encountered: