XML : jEdit XML Sidekick cannot handle XHTML5

I have a document in XHTML5. That just means that I'm creating an HTML5 document, but I want all the ending tags to be present and I want appropriate encoding, etc. So the file extension is xhtml and the file starts with:

  <?xml version="1.0" encoding="utf-8"?>  <!DOCTYPE html>  <html lang="en-us" xmlns="http://www.w3.org/1999/xhtml">    

All this is completely standard stuff. Just simple HTML5 encoded in XML.

I installed jEdit 5.3.0 with the XML Sidekick plugin. Immediately I get an error list, saying:

  Element type "html" must be declared.  Element type "html" must be declared.  Element type "body" must be declared.  Element type "h1" must be declared.  Element type "p" must be declared.  ...    

The Sidekick outline looks cool, and the popup suggesting the element and attribute names is nice.

But how do I get rid of all those errors? I don't need or want a DTD.

If I change the parser to html then I don't get any errors --- but I don't get any DOM tree representation or auto-suggest either.

Why doesn't jEdit+Sidekick like my simple, standards-compliant XHTML5 file?

No comments:

Post a Comment