bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#612: 23.0.60; nxml-mode bug when using XHTML 1. Transitional


From: Chong Yidong
Subject: bug#612: 23.0.60; nxml-mode bug when using XHTML 1. Transitional
Date: Sun, 16 Nov 2008 23:00:31 -0500

> The attached file is valid XHTML 1.0 Transitional (according to 
> http://validator.w3.org/), but nxml-mode marks the label and input tags 
> as invalid.

Looks like nXML mode is following the XHTML modularization standard
correctly.  According to 5.5.1 of that standard
(http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_forms),
the input and label tags are inside the Inline content set, and the body
of the form tag must be a Block object.  A Block object can be something
like a <p> tag enclosing an Inline object, but it can't be an Inline
object just by itself.

My suspicion is that the validator is more lax than the XHTML
modularization standard.  If you want nXML to allow this, make the
following edit to the schema file (I don't think we should actually make
this change in CVS, though):


*** trunk/etc/schema/xhtml-bform.rnc.~1.1.~   2007-12-15 06:01:36.000000000 
-0500
--- trunk/etc/schema/xhtml-bform.rnc  2008-11-16 22:55:35.000000000 -0500
***************
*** 5,11 ****
      form.attlist,
      # Don't use Block.model, because this gets redefined by the
      # legacy module.
!     Block.class+
    }
  form.attlist =
    Common.attrib,
--- 5,11 ----
      form.attlist,
      # Don't use Block.model, because this gets redefined by the
      # legacy module.
!     (Block.class | Inline.class)+
    }
  form.attlist =
    Common.attrib,






reply via email to

[Prev in Thread] Current Thread [Next in Thread]