<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Export to xhtml document always has title of "- no title specified""
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107949">107949</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Export to xhtml document always has title of "- no title specified"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.1.6.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rolfofsaxony@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
In the header.xsl file there is the following:
                <!-- title of document for browser frame title -->
                <xsl:element name="title">
                <xsl:attribute name="xml:lang">
                        <xsl:value-of select="$lang" />
                </xsl:attribute>

                        <xsl:choose>
                                <xsl:when
test="$globalData/meta-file/*/office:meta/dc:title">
                                        <xsl:value-of
select="$globalData/meta-file/*/office:meta/dc:title" />
                                </xsl:when>
                                <!-- providing the mandatory title is a
workaround for an IE bug-->
                                <xsl:otherwise>
                                        <xsl:text>- no title
specified</xsl:text>
                                </xsl:otherwise>
                        </xsl:choose>
                </xsl:element>

On Linux Mint 17 Libreoffice running with Language English UK any document
exported as xhtml whether it has a Title in the document or not always ends up
with the .html document having
<title xml:lang="en-US">- no title specified</title>
Whilst this can be edited, it's an annoyance.
Even if the actual title cannot be extracted from the document for some reason
the default should at the very least be the filename of the document i.e.
"mydocument.html" not "- no title specified"


Steps to Reproduce:
1.Export a .odf document as xhtml
2.
3.

Actual Results:  
<title xml:lang="en-US">- no title specified</title>

Expected Results:
<title xml:lang="en-US">Bandwidth on Linux</title>
Using the actual title in the document
or
<title xml:lang="en-US">bandwidth.html</title>
Using the name of the file


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/58.0.3029.81 Safari/537.36 OPR/45.0.2552.812</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>