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: 2022-05-16 18:52 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"