W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

Re: Comment about DocumentType

From: John Cowan <cowan@locke.ccil.org>
Date: Thu, 22 Oct 1998 14:08:51 -0400
Message-ID: <362F74B3.4575DC93@locke.ccil.org>
To: DOM List <www-dom@w3.org>
keshlam@us.ibm.com wrote:

> I posted the following on the DOM IG's mailing list a while back.

This is a very interesting document indeed!  One simplification:

> b) The type(s) and sequence(s) of children that each kind of element will
> permit. To insulate us from possible variation in how these rules are
> expressed in the schema langauges, I'd suggest making this a query that
> asks "If I was to do  nodeX.insertBefore(nodeY,nodeZ), where X and Z are
> known, what types of nodes would be permitted as Y?"

It's not clear that such a list is easy to compute.  I would rather
make the legal element types known, and then simply ask: is this
type a legal predecessor of existing node Z?  (X is just Z.getParent()).

John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)
Received on Thursday, 22 October 1998 14:09:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC