Bug 144778 - Exported epub file will not pass validation (element "title" not allowed here)
Summary: Exported epub file will not pass validation (element "title" not allowed here)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.1.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 141664 (view as bug list)
Depends on:
Blocks: EPUB-Export
  Show dependency treegraph
 
Reported: 2021-09-28 19:40 UTC by Lee Higbie
Modified: 2024-05-16 03:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Exact version info from LO help. (7.90 KB, image/png)
2021-09-28 19:46 UTC, Lee Higbie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Higbie 2021-09-28 19:40:11 UTC
Description:
Many (probably most) e-book wholesalers and retailers require that epub files pass validation.  Exporting a reasonably complex document produces scores of errors and even my simple documents do not validate.

Steps to Reproduce:
1. Open or create a document
2. Select Export As > Export as EPUB...
3. Select Version EPUB 2.0
4. Click OK

Actual Results:
With a trivially small file, the validator produces:
ERROR: D:\Documents\Working Files\EpubTest.epub/OEBPS/sections/section0001.xhtml(2): element "title" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context

ERROR: D:\Documents\Working Files\EpubTest.epub/OEBPS/sections/section0001.xhtml(2): element "title" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context

Check finished with warnings or errors!

Expected Results:
The epub file should pass validation so it can be sold through normal retail outlets, not just distributed to friends.


Reproducible: Always


User Profile Reset: No



Additional Info:
The contents of the document that produced the errors above was:
Test epub export from LibreOffice. I will export this and run the exported version through the “Discovery ePub Validator 1.0”  from http://www.ebook-tool.com.
Comment 1 Lee Higbie 2021-09-28 19:46:56 UTC
Created attachment 175329 [details]
Exact version info from LO help.

The exact version number was not listed, so I'm including thi9s version info from LO help.
Comment 2 Michael Warner 2021-10-13 13:09:31 UTC
You can copy the version information to the clipboard by pressing the button next to the text "Version Information", then you can paste it directly in a comment. It's easier than attaching a screenshot.

I'll mark your earlier report of this same issue from a few months ago as a duplicate.
Comment 3 Michael Warner 2021-10-13 13:09:47 UTC
*** Bug 141664 has been marked as a duplicate of this bug. ***
Comment 4 raal 2022-02-17 18:04:29 UTC
Tested with Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 8942956e05f2208ffb666a2118f5db092c30ce6a
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

I used one chapter from LO guides and online validator http://validator.idpf.org/

Errors: Error while parsing file: element "title" not allowed here; expected the element end-tag or element "base", "link", "meta", "script" or "style"
Comment 5 QA Administrators 2024-05-16 03:16:27 UTC
Dear Lee Higbie,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug