<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 4/16/20 11:08 PM, Greg Hellings
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHxvOVJCEASSbGzrWJKAqDW4KvVWy2t1GyEEDgPyh8a5LYo8zg@mail.gmail.com">
      <div>&lt;!DOCTYPE html&gt; will give you HTML 5, not XHTML. XHTML
        would be much wordier: <a
href="https://en.wikipedia.org/wiki/Document_type_declaration#XHTML_Basic_DTDs"
          moz-do-not-send="true">https://en.wikipedia.org/wiki/Document_type_declaration#XHTML_Basic_DTDs</a></div>
    </blockquote>
    <br>
    <font face="FreeSerif">Well... That link itself says:</font><br>
    <blockquote><span style="color: rgb(34, 34, 34); font-family:
        sans-serif; font-size: 14px; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
        255); text-decoration-style: initial; text-decoration-color:
        initial; display: inline !important; float: none;">In<span> </span></span><a
        href="https://en.wikipedia.org/wiki/XHTML5" class="mw-redirect"
        title="XHTML5" style="text-decoration: none; color: rgb(11, 0,
        128); background: none rgb(255, 255, 255); font-family:
        sans-serif; font-size: 14px; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px;">XHTML5</a><span style="color:
        rgb(34, 34, 34); font-family: sans-serif; font-size: 14px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span> </span>the<span> </span></span><code
        style="font-family: monospace, monospace; color: rgb(0, 0, 0);
        background-color: rgb(248, 249, 250); border: 1px solid rgb(234,
        236, 240); border-radius: 2px; padding: 1px 4px; font-size:
        14px; font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        text-decoration-style: initial; text-decoration-color: initial;">DOCTYPE</code><span
        style="color: rgb(34, 34, 34); font-family: sans-serif;
        font-size: 14px; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span> </span>must be a case-sensitive
        match of the string "</span><code class="mw-highlight
        mw-highlight-lang-html" id="" dir="ltr" style="font-family:
        monospace, monospace; color: rgb(0, 0, 0); background: rgb(248,
        248, 248); border: 1px solid rgb(234, 236, 240); border-radius:
        2px; padding: 1px 4px; direction: ltr; unicode-bidi: embed;
        font-size: 14px; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        text-decoration-style: initial; text-decoration-color: initial;"><span
          class="cp" style="color: rgb(188, 122, 0);">&lt;!DOCTYPE
          html&gt;</span></code><span style="color: rgb(34, 34, 34);
        font-family: sans-serif; font-size: 14px; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
        255); text-decoration-style: initial; text-decoration-color:
        initial; display: inline !important; float: none;">".<span> </span></span><br>
      <span style="color: rgb(34, 34, 34); font-family: sans-serif;
        font-size: 14px; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span></span></span></blockquote>
    <font face="FreeSerif">So I'm already confused. Didn't take much,
      huh?</font><tt><br>
      <br>
    </tt>
    <blockquote type="cite"
cite="mid:CAHxvOVJCEASSbGzrWJKAqDW4KvVWy2t1GyEEDgPyh8a5LYo8zg@mail.gmail.com">
      <blockquote class="gmail_quote" style="margin:0px 0px 0px
        0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
        <div><font face="FreeSerif">- begins with &lt;?xml...&gt; line<br>
          </font></div>
      </blockquote>
      <div><br>
      </div>
      <div>Doesn't seem to be strictly needed by browsers for XHTML
        rendering, but it shouldn't hurt, either.</div>
    </blockquote>
    <font face="FreeSerif">I used it based on the examples seen at<br>
      <a
href="https://www.crosswire.org/pipermail/sword-devel/2019-March/046664.html">https://www.crosswire.org/pipermail/sword-devel/2019-March/046664.html</a><br>
      which I saved at the time and used as a reference now.</font>
    <blockquote type="cite"
cite="mid:CAHxvOVJCEASSbGzrWJKAqDW4KvVWy2t1GyEEDgPyh8a5LYo8zg@mail.gmail.com">
      <blockquote class="gmail_quote" style="margin:0px 0px 0px
        0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
        <div><font face="FreeSerif"> - changes content type to
            application/xhtml+xml (also tried just xhtml, no diff)<br>
          </font></div>
      </blockquote>
      <div><br>
      </div>
      <div>That's not necessary to get you into XHTML mode.<br>
      </div>
    </blockquote>
    <font face="FreeSerif">OK, keep that thought in mind -- now, ready
      for my next confusion? Here goes:</font><br>
    <blockquote type="cite"
cite="mid:CAHxvOVJCEASSbGzrWJKAqDW4KvVWy2t1GyEEDgPyh8a5LYo8zg@mail.gmail.com"> They
      only thing they care about is the Content-Type: in the HTTP
      header. Of course, you don't have an HTTP header, but surely you
      have a way to set it to "application/xhtml+xml"?</blockquote>
    <font face="FreeSerif">See, on the one hand you say "not necessary"
      but in your next breath you say it's "the only thing they care
      about." OK, which is it?<br>
      <br>
      There has been this "meta" directive in the header to induce
      general HTMLness via content-type since years before I got
      involved, and I've never touched that particular aspect of it
      until now.<br>
      <br>
      Trust me, I remain wide open to suggestions, but just in your one
      response here, you've given me 2 completely self-contradictory
      indications, one about DOCTYPE and one about content-type.<br>
      <br>
      Small wonder people have trouble writing code to deal with this, I
      guess.</font><br>
  </body>
</html>