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

970xhtml validation in nxml-mode

Expand Messages
  • gattocarlo2000
    May 8, 2005
      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"
      /xhtml-math11-f.dtd" [
      <!ENTITY % MATHML.prefixed "INCLUDE">
      <!ENTITY % MATHML.prefix "mml">
      <html xml:lang="en-EN" xmlns="http://www.w3.org/1999/xhtml">
      <title>UniWakka : BugsAndFeatureRequests</title>
      <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;"

      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.