The current XHTML configuration that ships with the XMLEditor product doesn't
recognize XHTML documents that just have an XHTML namespace.  In fact, it
expected the namespace name to be nil.  Thus, if you have an XHTML document
that has some combination of no DOCTYPE or a XHTML namespace attribute, your
document will not be recognized by XMLMind.

Here's a quick fix that you all might consider:

 <detect>
    <or>
      <rootElementNamespace>http://www.w3.org/1999/xhtml</rootElementNamespace>
    <and>
      <rootElementNamespace xsi:nil="true" />
      <or>
        <dtdPublicId>-//W3C//DTD XHTML 1.0 Strict//EN</dtdPublicId>
        <dtdPublicId>-//W3C//DTD XHTML 1.0 Transitional//EN</dtdPublicId>
        <and>
           <schemaType xsi:nil="true" />
           <or>
             <rootElementLocalName>body</rootElementLocalName>
             <rootElementLocalName>div</rootElementLocalName>
             <rootElementLocalName>html</rootElementLocalName>
           </or>
        </and>
      </or>
    </and>
    </or>
  </detect>

I've just added the XHTML namespace as something the configuration
recognizes and everything seems to work fine.  I don't think this covers
all the cases properly, but it works for my documents as I always have
my documents explicitly in the XHTML namespace.

-- 
Alex Milowski ? ? ? ? ? ? ?                           alex at milowski.org

"The excellence of grammar as a guide is proportional to the paucity of 
the inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Reply via email to