Intradocument xrefs in the exported file are completely missing, in the majority of cases. However, in one case the link text continues from the actual link until the end of the section. I'll attach a short document showing both of these problems.
This is with File > Export > XHTML.
Created attachment 70722 [details]
Document showing 2 xref problems
This file shows both issues.
On the 3rd page is an xref to "Invariance of Undefined Values" which is the following section. (The section number text is incorrect but if I open "Fields..." it seems to be pointing to the right place. I'm not familiar enough with LibreOffice to know how to get the text updated.) In the XHTML export there is no link.
On the 4th page is a reference to "Section 5.10". Note that only the target section number is linked to the referenced section. In the XHTML export the entire text from "5.10 to the end of the section is highlighted at a link. Looking at the XHTML source you can see that the <a> tag is repeated multiple times, most with empty text, until the a final one starting before the '"' following 5.10 and ending at the end of the section.
I'm taking a bit of a liberty here Peter to ensure that you see this bug. Apologies if you are the wrong person for this.
confirming the bugs.
the latter symptom relates to the fact that we're not really outputting xhtml but plain xml. xhtml mandates that non empty element types have a closing tag (like <a></a>, while xml allows <a/>.
Forcing xhtml output would require removing the mathml doctype extension, and I'm not sure if that's required.
So I'm keeping that in place and we'll now just omit empty <a href..> elements (because they'd be invisible if properly closed anyway).
Peter Jentsch committed a patch related to this issue.
It has been pushed to "master":
fix fdo#57647 intradocument xrefs broken in xhtml
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
There seems to be a problem with the OSX 10.7 build. The latest entry in
is dated Nov. 30th and it is incomplete.
Builds for other platforms have been updated much more recently.
As I result I am as yet unable to verify this fix.
just leave the ticket as RESOLVED/FIXED. UNCONFIRMED is used to indicate that nobody was able to confirm that the bug really exists and is a bug.
The should be a status "VERIFIED" that indicates successful validation of a fix.