Exporting a Writer file to EPUB2 format generates multiple <title/> tags in the resulting XHTML files

Hi ,

When exporting a Writer file to EPUB2 and checking the result with epubcheck-5.2.1/epubcheck.jar, errors are generated due to extra -title/- tags in each of the XHTML files. The first XHTML file always has three total instances of the -title/- tags, the first does not generate an error message, but both of the others will result in an error message.

Each of the remaining files will have two instances of the -title/- tags. Again, the first is accepted but the second results in an error message.

The -title- tags are always in the same locations when present, as shown in the error messages below

XHTML Source File

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title/><meta content="text/html; charset=UTF-8" http-equiv="content-type"/><title/><meta content="Mattie Fern Worrix" name="author"/><title/><link href="../styles/stylesheet.css" rel="stylesheet" type="text/css"/></head><body class="body0"><p class="para0"><span class="span0">Teddi My Love</span></p><p class="para1"><span class="span1">An Evergreen, Oregon Teen Romance</span></p><p class="para1"> </p><p class="para1"><span class="span2">Mattie Fern Worrix</span></p></body></html>

Errors

ERROR(RSC-005): ./Documents/Maggie/MattieFernWorrix/MFW_OriginalBookshelf/TeddiMyLove/Content/202505092237/TeddiMyLove.epub/OEBPS/sections/section0001.xhtml(2,134): Error while parsing file: element “title” not allowed here; expected the element end-tag or element “base”, “link”, “meta”, “script” or “style”
ERROR(RSC-005): ./Documents/Maggie/MattieFernWorrix/MFW_OriginalBookshelf/TeddiMyLove/Content/202505092237/TeddiMyLove.epub/OEBPS/sections/section0001.xhtml(2,192): Error while parsing file: element “title” not allowed here; expected the element end-tag or element “base”, “link”, “meta”, “script” or “style”

I work around the problem by searching for and deleting the problem tags in each of the files.

Is there a failing on my part, or is this a problem in the export?

Thanks for your time.

John

144778 – Exported epub file will not pass validation (element "title" not allowed here)

Thank you for the information. I do appreciate it. Fortunately, the work around is relatively easy and really doesn’t need to be done until the final iteration of the work that is to be sent for validation.

John