Closed pr-apes closed 1 year ago
Interesting, this looks strange. Thank you for posting this issue!
I believe this should be fixed by rewriting the XPath parser, which will take some time.
Many thanks for your reply, @pgundlach.
This doesn't seem to be a minor task.
I'm still making some tests, so it may be wise to close the issue (myself).
If I find something that I cannot avoid, I will reopen the issue.
Many thanks for your help.
@pgundlach,
the shorter text suggested in https://github.com/speedata/publisher/discussions/478#discussioncomment-5345430 might have hit a bug (or a rather uncommon behavior).
Given the following
data.xml
contents:And the following layout contents:
Final output is:
It seems that
<Value select="if (position() > 0) then sd:decode-html(.) else" />
interprets<br/>
as a full blank line (which is wrong) and<Value select="sd:decode-html(.)" />
handles it as a line break inside the same paragraph (which is right).I have no idea what might be triggering this.
It would be great, if you could take a look at it.
Many thanks for your help.