Apache OpenOffice (AOO) Bugzilla – Issue 87172
export as xhtml breaks TOC hyperlinks and cross-references
Last modified: 2017-05-20 09:30:33 UTC
A) When exporting an ODT file which contains a TOC, when the TOC contains hyperlinks to the referred sections, the generated links are incorrect in XHTML exports (they refer to non-existant external files). B) Similarly, intra-document cross-references disappear in the XHTML exports. An example ODT and its corresponding XHTML are attached. To see effect (A) simply click any entry in the TOC of the XHTML copy. To see effect (B) simply search for "section ", and you will find several instances which should say "see section XYZ", but the "XYZ" (numeric section reference) is missing.
Created attachment 52177 [details] file with toc to show problem
Created attachment 52178 [details] exported xhtml exhibiting problem
Reassigned to ES.
Reassigned to JSI
In OOo30 RC1 TOC is completely missing. This is a regression In OOo 2.4 it exports the TOC with wrong links. We need a TOC with correct links.
Reporter: We won't fix it in the 2.x major trunk but I would agree that it is a regression from 2.x to 3.x and it should be fixed there. Version: changed from 2.x -> OOO300m5 keywords: regression,NO-SOL,T2 Target 3.0.1 (=> regression to 2.x major)
sub cat: external filters
Thanks for writing this issue, a very nice document. I will take a look into it. Have a nice week-end, Svante
Thanks again for this document, I had a long bus ride on the week-end, where I found time to dive deeper into it: I found a show stopper candidate for OOo3, where every unordered list is writing out a dot behind the bullet label in ODF: http://www.openoffice.org/issues/show_bug.cgi?id=93908 Furthermore, found (but not yet fixed the issue of the content table) and as well found some room for improvements for paragraphs with borders, that look different in your original document and the XHTML. 1) margin/padding between those bordered paragraphs have to be zero. 2) A single bordered paragraph did not exist in my previous documents and will be fixed for your document. After this your document should be fine, let me know if you stumble over furhter anomalies. Hope you have a great start into the week! Svante
I am sorry. I have to postpone this, due to my work on the ODF 1.2 format and the ODF toolkit.
i make a fix - how i can submit code?
I would suggest to change this issue to a patch and attach your fix. Regards, Svante
As my daughter was born three days earlier than expected, I have to postpone this CWS to the next OOo release. I will be in a parental absence till mid of March. Sorry for the delay. Svante
As there are no more parental absence months for me, I am pretty confident the patch will make it to the OOo 3.3. Sorry for the delay! Svante
OOo 3.3 is nearly final. I change the target of this issue to OOo 3.x. Please find a solution and set a correct target, if you know when a fix can be integrated.
Created attachment 76390 [details] ZIP Containing the XHTML Filter as a executable bundle The ZIP contains the collection of XSLT files to run the files. Please apply all files that are changes, but do NOT add new files. Thanks, Svante
Hi Michael, can you please apply the given XSLT files to filter\source\xslt\odf2xhtml\ Thanks, Svante