Apache OpenOffice (AOO) Bugzilla – Issue 9115
Cross references don't make it across to HTML documents
Last modified: 2013-08-07 14:38:26 UTC
Create a document and add a bookmark. Now cross reference that bookmark some where in the document. Save it as HTML. The hyperlinks are not there. An examination of the produced HTML shows the <A LABEL="foo></A> but no <HREF... where it should be.
What do you call "cross reference" in this context? How do you do that? What do mean with: "The hyperlinks are not there"
`What do you call "cross reference" in this context? How do you do that?' Create a document - File --> New and add a bookmark. - Insert --> Bookmark Now cross reference that bookmark some where in the document - Insert --> Cross Reference Save it as HTML - File --> Save What do mean with: "The hyperlinks are not there - load page into a browser and.... no hyperlinks.
Created attachment 7352 [details] Bookmark + XRef
Created attachment 7353 [details] Look, no hyperlinks
to link inside a document you have to do this for example mark your word above insert -> hyperlink -click on document -click on the button beside the field taget -look for bookmarks -click on fred -apply -close -apply in the Hyperlink dialog -save as html html crossreference is visible. please close this task if this tip help you reassigned to es
Yes, that works if you are editing an .html file. But why don't bookmarks / cross-references export to HTML. When editing an HTML file the two presented menu options are `Insert --> Bookmark' and `Insert --> Hyperlink'. When editing a standard document the three presented menu options are `Insert --> Bookmark', `Insert --> Hyperlink' and `Insert --> Cross-reference'. But when a `Cross-reference' is to an internal document bookmark this is a # type hyperlink and should be exported as such.
I still see that in 1.1RC3 German version WIN98SE: 645m15(Build8669) [CWS:ooo11rc3] so I change version I do not think that that is a defect. It is quite normal that OOo has some features which will not be available any longer after you saved a document as ".html". Extreme: You can save a spreadsheet as ".html", but it will not calculate any longer ;-) Might be reasonable to think about this special detail, and so I change issue type and priority, because I want to get this issue out of the really untouched "Defect"-issues. Rainer
Reassigned to User Experience for evaluation.
New
Hello Michael, could you please explain, what causes this different behaviour of showing cross references at editing an html-file but not at html-export? Thank you. For me it seems to be a defect.
Cross references to text marks and hyperlinks are two distinct concepts. A cross reference is for inserting a textual reference to the text mark, for instance a page number. It is only an additional feature that clicking this text jumps to the reference mark, but it is not the main purpose of references. In contrast to this, hyperlinks are for inserting clickable areas that jump to the text mark. References are not a concept of HTML, while Hyperlinks are. For this reason, inserting a reference is not allowed in HTML documents. One could of course map references to hyperlink for text documents, but that is an feature request. It is also unclear to me whether one wants to have a hyperlink for a reference in all cases. If one wants to have that hyperlink, one could explictly insert it. For all that reasons, I don't think we should change anything here. Change type to feature, priority to 5 and target to OOo Later. A Workaround would be to explicitly insert a ahyperlink
.
*** Issue 25823 has been marked as a duplicate of this issue. ***
References are not a concept of HTML Is that not what '#' is used for in HTML document ? One could of course map references to hyperlink for text documents, but that is an feature request. Is an enhancement, which is what this is posted as, not a feature request ? It is also unclear to me whether one wants to have a hyperlink for a reference in all cases. But the application knows that it is exporting to HTML so could it not make a descision accordingly ? I don't think we should change anything here. That's a shame. BTW if this is really not going to be fixed, and to remove it from my radar :-) , it shouldn't be NEW / WONTFIX
Created attachment 15792 [details] OOo document
(Sorry I created the attachment without submitting my comment first, I thought the issue tracker was able to handle it) IMHO cross-references should be at least exported as plain text. It's not appropriate for them to disappear from exported documents. Here are some screenshots. First the OOo original document that has 4 main information : hyperlinks created using the Insert menu, hyperlinks created using the Navigator, hyperlinks created using bookmarks and last but not least cross-references. Then I will submit an attachment showing the HTML exported document, all « hyperlinks » are there but the cross-references, I don't really understand what the purpose of cross-references is, as they're not clickable (?), but I do know that they should be exported, not removed from the document. Last the PDF exported document, cross-references are exported as plain text.
Created attachment 15793 [details] HTML exported document
Created attachment 15794 [details] PDF exported document
Please remove the WONTFIX "resolution". The export of documents with cross references to HTML *is* broken. The problem is not (only) that no links are inserted but that the value of the reference is not exported at all. When exporting to PDF, the values are exported and augmented with (invisible) links. I think, the behavior should be at least consistent.
Here is my rationale for agreeing with this FRE: (I was going to request this but I searched first). 1. I create a document and I set and insert cross references. While editing the document in OOo, I click on references, which focuses the cursor to the referenced item. 2. I also create a TOC, which contains links to the headings. 3. I export the document as a PDF file. The cross references are still in-place and functional. This includes the TOC, and my inserted references. 4. I export the document as an HTML file. The references in the TOC do indeed export correctly as valid HTML. The inserted references such as references to tables do NOT export correctly. This is NOT a bug, this is an RFE. I must investigate to see if I can explicitly insert cross references in such a way that they will export into the HTML file. If so, I can probably write a macro that will convert a document into a form that will export as desired.
Re-opening. Cheers.
To grep the issues easier via "requirements" I put the issues currently lying on my owner to the owner "requirements".