Issue 95765 - When creating html documents the generated html does not correctly reference the class in the generated style.css file.
Summary: When creating html documents the generated html does not correctly reference ...
Status: CLOSED FIXED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: OOO300m9
Hardware: All All
: P3 Trivial (vote)
Target Milestone: 4.1.0
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-02 15:24 UTC by motohoss
Modified: 2019-10-12 17:12 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.0.1
Developer Difficulty: Simple


Attachments
diff (360 bytes, text/plain)
2008-11-02 15:26 UTC, motohoss
no flags Details
diff (362 bytes, text/plain)
2008-11-02 15:27 UTC, motohoss
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description motohoss 2008-11-02 15:24:49 UTC
When creating html documents the generated html does not correctly reference the
class in the generated style.css file.

open a document with OO-writer (any document)...
click on File:Wizards:Web Page
Follow the prompts, fill out the 'forms' and check marks...and publish to local
file-system.
The generated .html file does not correctly reference the CSS class in the
default style.css generated file.

Open the generated html file in a text editor and find this call to the style.css:
[<span class="doclastchangedate">Created: Nov 1, 2008</span>]
(square brackets for clarity)

Open the generated [style.css] file and found this class:
[.doclastchangeddate {font-family: Arial, Helvetica, sans-serif;font-size: 12px;
color: #990000;}]
(square brackets for clarity)

After looking more deeply I found the sources for the .css in 
/usr/lib/openoffice/share/config/wizard/web/styles/
they all reference "doclastchangeddate".

Then I found
these two files:
/usr/lib/openoffice/share/config/wizard/web/layouts/layout.xsl
/usr/lib/openoffice/share/config/wizard/web/layouts/layoutX.xsl
that refer to "doclastchangedate".

Then I found the source for the latter two files:
http://installation.openoffice.org/source/browse/*checkout*/installation/extras/source/misc_config/wizard/web/layouts/layout.xsl?content-type=text%2Fplain&rev=1.4

http://installation.openoffice.org/source/browse/*checkout*/installation/extras/source/misc_config/wizard/web/layouts/layoutX.xsl?content-type=text%2Fplain&rev=1.4

I am not sure if these two files should be changed or if all the "style" files
should be changed. I chose the 'Found in version' because that is what I am
using currently.

Thanks for all you do for OO.
Comment 1 motohoss 2008-11-02 15:26:35 UTC
Created attachment 57656 [details]
diff
Comment 2 motohoss 2008-11-02 15:27:08 UTC
Created attachment 57657 [details]
diff
Comment 3 motohoss 2008-11-02 23:28:52 UTC
After review on irc channel it was requested to reassign this to "installation".
If I need to do something else to properly follow through please let me know.

Thanks.
Comment 4 motohoss 2008-11-02 23:35:03 UTC
Did not originally assign to issues@instaltion.
Comment 5 Olaf Felka 2008-11-03 06:59:23 UTC
reassigned
Comment 6 h.ilter 2008-11-03 10:07:14 UTC
Reassigned to ES
Comment 7 eric.savary 2008-11-03 10:31:27 UTC
Thank you for your submission!

Unfortunately, we have no ressource available to fix or improve the HTML
component, so that we only can fix crashes and huge regressions.

Thank you for your comprehension.
Comment 8 eric.savary 2008-11-03 10:32:15 UTC
Closed
Comment 9 motohoss 2008-11-03 15:16:27 UTC
The code still exists that has the error. The two files I mentioned are still in
the source for the current version(OOO300m9). They still have the error. If I
change the "Found in version can we re-open the issue? Or would we still be of
the position "We have no resource available to fix or improve the HTML
component" ?

see the CVS tags here:
http://installation.openoffice.org/source/browse/installation/extras/source/misc_config/wizard/web/layouts/layout.xsl?hideattic=1&rev=1.4&view=log

and here:
http://installation.openoffice.org/source/browse/installation/extras/source/misc_config/wizard/web/layouts/layoutX.xsl?hideattic=1&rev=1.4&view=log

I will change the "Found in version" tag on this issue if that will allow a
re-open and fix to be placed. I have new diff's to attach since I obtained the
latest source.

Thanks for all you do for OOo.
Comment 10 eric.savary 2008-11-04 14:00:19 UTC
Sorry for the misunderstanding. Forwarding.
Comment 11 eric.savary 2008-11-04 14:01:02 UTC
@MBA: Please have a look.
Comment 12 Mathias_Bauer 2008-11-05 11:40:41 UTC
Volker, is that (Web Wizard) your playground?
Comment 13 weko 2008-11-05 13:18:24 UTC
VA->IH: Could you please have a look? Maybe you have to forward this issue to 
MAV(?).
Comment 14 nospam 2008-11-05 14:37:04 UTC
mav, you inherited that wizard from bc, am I right? Please take care of this
issue. Thanks.
Comment 15 JZA 2013-09-13 20:22:13 UTC
*TESTED*

Email the dev list for implementation of patches:
http://markmail.org/thread/23mkqmb5crhkl6pu
Comment 16 dafsafaa 2013-09-17 22:48:22 UTC
I can verify the same issue under those files it misses an extra "d" .
Comment 17 SVN Robot 2013-10-07 18:00:26 UTC
"pescetti" committed SVN revision 1530012 into trunk:
#i95765# Fix CSS classes in Web Page Wizard.
Comment 18 Andrea Pescetti 2013-10-07 18:15:12 UTC
Fixed in trunk for the future version 4.1.0, due in 2014

motohoss: thank you for the patch and if you submit other patches we'll make sure to be faster in integrating them.
Comment 19 AndrewC 2015-02-09 19:40:07 UTC
Verified in AOO 4.2.0 on Windows 7 and on Ubuntu 14.04. 

First created basic web page.
<html>
<head>
    <title>Test Title>
</head>
<body>
Test Body
</body>
</html>

Followed steps above. Note during those steps you have to make sure to check "Last change date" in the web wizard.

The index.html and style.css both correctly reference doclastchangeddate.