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

Fwd: Bug#293557: nxml-mode: id not recognized as a valid attribute for the html element

Expand Messages
  • Chris Lawrence
    Yes, the XHTML 1.0 DTD says the id attribute is permissible in elements (though, interestingly enough, HTML 4.01 doesn t permit its use there!):
    Message 1 of 1 , Feb 4, 2005
    • 0 Attachment
      Yes, the XHTML 1.0 DTD says the id attribute is permissible in <html>
      elements (though, interestingly enough, HTML 4.01 doesn't permit its
      use there!):

      http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_html

      Looks like a simple tweak to one of the xhtml*.rnc files.


      Chris

      ---------- Forwarded message ----------
      From: Vincent Lefevre <vincent@...>
      Date: Fri, 4 Feb 2005 12:05:52 +0100
      Subject: Bug#293557: nxml-mode: id not recognized as a valid attribute
      for the html element
      To: Debian Bug Tracking System <submit@...>


      Package: nxml-mode
      Version: 20041004-4
      Severity: normal

      Consider the following XHTML file:

      <?xml version="1.0" encoding="iso-8859-1"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" id="index.en">
      <head><title>.</title></head>
      <body>
      </body>
      </html>

      It can be checked with xmllint that it is valid. But the nxml-mode
      says that it is invalid because the id attribute is not allowed.

      -- System Information:
      Debian Release: 3.1
      APT prefers unstable
      APT policy: (500, 'unstable')
      Architecture: i386 (i686)
      Kernel: Linux 2.6.9-dixsept
      Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

      Versions of packages nxml-mode depends on:
      ii emacs21 21.3+1-8 The GNU Emacs editor
      ii emacsen-common 1.4.16 Common facilities for all emacsen

      -- no debconf information
      --
      Chris Lawrence - http://blog.lordsutch.com/
    Your message has been successfully submitted and would be delivered to recipients shortly.