Re: Comment about DocumentType

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