Issue 9115 - Cross references don't make it across to HTML documents
Summary: Cross references don't make it across to HTML documents
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: PC All
: P5 (lowest) Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 25823 (view as issue list)
Depends on:
Blocks:
 
Reported: 2002-11-08 17:20 UTC by osavill
Modified: 2013-08-07 14:38 UTC (History)
4 users (show)

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


Attachments
Bookmark + XRef (5.29 KB, application/octet-stream)
2003-07-02 21:21 UTC, osavill
no flags Details
Look, no hyperlinks (1.12 KB, application/octet-stream)
2003-07-02 21:21 UTC, osavill
no flags Details
OOo document (8.90 KB, image/png)
2004-06-10 10:30 UTC, goa103
no flags Details
HTML exported document (7.68 KB, image/png)
2004-06-10 10:31 UTC, goa103
no flags Details
PDF exported document (17.70 KB, image/png)
2004-06-10 10:31 UTC, goa103
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description osavill 2002-11-08 17:20:23 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.
Comment 1 eric.savary 2003-06-30 16:24:43 UTC
What do you call "cross reference" in this context? How do you do that?
What do mean with: "The hyperlinks are not there"
Comment 2 osavill 2003-07-02 21:20:40 UTC
`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. 
Comment 3 osavill 2003-07-02 21:21:13 UTC
Created attachment 7352 [details]
Bookmark + XRef
Comment 4 osavill 2003-07-02 21:21:36 UTC
Created attachment 7353 [details]
Look, no hyperlinks
Comment 5 jack.warchold 2003-08-08 16:18:29 UTC
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
Comment 6 osavill 2003-08-08 22:05:59 UTC
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. 
 
 
Comment 7 Rainer Bielefeld 2003-09-07 10:21:35 UTC
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
Comment 8 eric.savary 2003-09-17 16:09:44 UTC
Reassigned to User Experience for evaluation.
Comment 9 eric.savary 2003-09-17 16:10:02 UTC
New
Comment 10 bettina.haberer 2003-11-12 14:17:16 UTC
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.
Comment 11 michael.brauer 2003-11-18 13:08:53 UTC
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
Comment 12 michael.brauer 2003-11-18 13:09:34 UTC
.
Comment 13 eric.savary 2004-03-05 14:47:24 UTC
*** Issue 25823 has been marked as a duplicate of this issue. ***
Comment 14 osavill 2004-03-19 13:36:49 UTC
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
Comment 15 goa103 2004-06-10 10:30:27 UTC
Created attachment 15792 [details]
OOo document
Comment 16 goa103 2004-06-10 10:31:12 UTC
(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.
Comment 17 goa103 2004-06-10 10:31:34 UTC
Created attachment 15793 [details]
HTML exported document
Comment 18 goa103 2004-06-10 10:31:58 UTC
Created attachment 15794 [details]
PDF exported document
Comment 19 haui 2005-06-06 21:13:04 UTC
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.
Comment 20 andrew 2005-08-09 20:44:49 UTC
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.
Comment 21 ace_dent 2007-01-31 23:17:12 UTC
Re-opening. Cheers.
Comment 22 bettina.haberer 2010-05-21 14:36:39 UTC
To grep the issues easier via "requirements" I put the issues currently lying on
my owner to the owner "requirements".