<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 17, 2020 at 6:33 AM Karl Kleinpaste &lt;<a href="mailto:karl@kleinpaste.org">karl@kleinpaste.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>On 4/16/20 11:08 PM, Greg Hellings
      wrote:<br>
    </div>
    <blockquote type="cite">
      <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" target="_blank">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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">In<span> </span></span><a href="https://en.wikipedia.org/wiki/XHTML5" title="XHTML5" style="text-decoration:none;color:rgb(11,0,128);background:rgb(255,255,255) none repeat scroll 0% 0%;font-family:sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><span> </span>must be a case-sensitive
        match of the string &quot;</span><code id="gmail-m_-4723805288893301307" dir="ltr" style="font-family:monospace,monospace;color:rgb(0,0,0);background:rgb(248,248,248) none repeat scroll 0% 0%;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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span 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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">&quot;.<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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><span></span></span></blockquote>
    <font face="FreeSerif">So I&#39;m already confused. Didn&#39;t take much,
      huh?</font><tt><br>
      <br>
    </tt>
    <blockquote type="cite">
      <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&#39;t seem to be strictly needed by browsers for XHTML
        rendering, but it shouldn&#39;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" target="_blank">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">
      <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&#39;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"> They
      only thing they care about is the Content-Type: in the HTTP
      header. Of course, you don&#39;t have an HTTP header, but surely you
      have a way to set it to &quot;application/xhtml+xml&quot;?</blockquote>
    <font face="FreeSerif">See, on the one hand you say &quot;not necessary&quot;
      but in your next breath you say it&#39;s &quot;the only thing they care
      about.&quot; OK, which is it?<br>
      <br>
      There has been this &quot;meta&quot; directive in the header to induce
      general HTMLness via content-type since years before I got
      involved, and I&#39;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&#39;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></div></blockquote><div><br></div><div>I think the confusion comes from me mixing my response. Discussion of proper DOCTYPE and the necessity of the &lt;?xml version=&quot;1.0&quot; ?&gt; directive are about what makes a valid XHTML document</div><div><br></div><div>But, as I read more, I came to find that the HTML WG suggests, and apparently all browsers implement, ignoring those directives and instaead caring only about the Content-Type header/directive. So if you have that header/directive in Xiphos, then try updating that to the appropriate &quot;application/xhtml+xml&quot; and see if that fixes Xiphos/WebKit&#39;s behavior?</div><div><br></div><div>--Greg<br></div></div></div>