Issue 87172 - export as xhtml breaks TOC hyperlinks and cross-references
Summary: export as xhtml breaks TOC hyperlinks and cross-references
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Code
Component: code (show other issues)
Version: OOO300m5
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: 4.x
Assignee: mst.ooo
QA Contact: issues@xml
URL: https://bugs.edge.launchpad.net/ubunt...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2008-03-18 05:50 UTC by ccheney
Modified: 2017-05-20 09:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
file with toc to show problem (47.98 KB, application/vnd.oasis.opendocument.text)
2008-03-18 05:51 UTC, ccheney
no flags Details
exported xhtml exhibiting problem (110.63 KB, text/html)
2008-03-18 05:52 UTC, ccheney
no flags Details
ZIP Containing the XHTML Filter as a executable bundle (68.14 KB, application/zip)
2011-04-15 12:22 UTC, svante.schubert
michael.brauer: review+
Details

Note You need to log in before you can comment on or make changes to this issue.
Description ccheney 2008-03-18 05:50:27 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.
Comment 1 ccheney 2008-03-18 05:51:29 UTC
Created attachment 52177 [details]
file with toc to show problem
Comment 2 ccheney 2008-03-18 05:52:18 UTC
Created attachment 52178 [details]
exported xhtml exhibiting problem
Comment 3 michael.ruess 2008-03-18 07:26:35 UTC
Reassigned to ES.
Comment 4 eric.savary 2008-03-18 13:42:28 UTC
Reassigned to JSI
Comment 5 jogi 2008-09-12 16:01:48 UTC
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.
Comment 6 jogi 2008-09-12 16:06:42 UTC
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)
Comment 7 jogi 2008-09-12 16:08:01 UTC
sub cat: external filters
Comment 8 svante.schubert 2008-09-12 16:11:25 UTC
Thanks for writing this issue, a very nice document.
I will take a look into it.

Have a nice week-end, 
Svante
Comment 9 svante.schubert 2008-09-15 12:11:21 UTC
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
Comment 10 svante.schubert 2008-12-03 11:07:18 UTC
I am sorry. I have to postpone this, due to my work on the ODF 1.2 format and
the ODF toolkit.
 
Comment 11 xquery 2008-12-03 14:36:05 UTC
i make a fix - how i can submit code?
Comment 12 svante.schubert 2008-12-03 14:44:06 UTC
I would suggest to change this issue to a patch and attach your fix.

Regards,
Svante
Comment 13 svante.schubert 2009-02-02 15:39:46 UTC
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
Comment 14 svante.schubert 2009-10-22 21:29:37 UTC
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
Comment 15 thorsten.ziehm 2010-11-09 08:35:49 UTC
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.
Comment 16 svante.schubert 2011-04-15 12:22:07 UTC
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
Comment 17 svante.schubert 2011-04-15 12:23:59 UTC
Hi Michael,

can you please apply the given XSLT files to filter\source\xslt\odf2xhtml\

Thanks,
Svante