Loading ...
Sorry, an error occurred while loading the content.

xhtml validation in nxml-mode

Expand Messages
  • gattocarlo2000
    Hello! Now, Ihave this xhtml file:
    Message 1 of 1 , May 8, 2005
    • 0 Attachment
      Hello!
      Now, Ihave this xhtml file:

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
      "http://www.w3.org/Math/DTD/mathml2
      /xhtml-math11-f.dtd" [
      <!ENTITY % MATHML.prefixed "INCLUDE">
      <!ENTITY % MATHML.prefix "mml">
      ]>
      <html xml:lang="en-EN" xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <title>UniWakka : BugsAndFeatureRequests</title>
      </head>
      <body>
      <form action="TextSearch" method="get"
      accept-charset="utf-8"><fieldset style="border: none; padding:
      1px;">Search: <input name="phrase" size="15" style="border: none;
      border-bottom: 1px solid #CCCCAA; padding: 0px; margin: 0px;"
      /></fieldset></form>
      </body>
      </html>

      According to the w3c validator this is perfectly valid.
      According to nxml-mode it is not because <fieldset> requires a
      mandatory <legend> child.

      In the w3c DTD I read:

      <!ENTITY % fieldset.content
      "( #PCDATA | %legend.qname; | %Flow.mix; )*"
      >
      AFAIK this means that <legend> may be included in <fieldset>, but is
      not mandatory. Whereas in schema/xhtml-form.rnc I read:
      fieldset = element fieldset { fieldset.attlist, legend, Flow.model }

      Is this a bug or I'm missing something?
      Thanks for your kind attention.
      Andrea
    Your message has been successfully submitted and would be delivered to recipients shortly.