Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] checkDetach vs. checkRemoveChild

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] checkDetach vs. checkRemoveChild
  • Date: Tue, 9 Mar 2004 23:38:23 -0500

Elliotte Rusty Harold scripsit:

> Is it that you'd like an HTMLElement
> that could only be a child of an HTMLElement or an HTMLDocument, but
> could not be a child of a generic Document or Element?

Exactly.

> I guess I'm stuck on the fact that with the notable exception of
> Schematron, most validity rules flow from the parent top the child,
> not the other way around. When we write a DTD or a schema we list the
> allowed children, not the allowed parents.

I'd like there to be a way for any attempt to add a ParagraphElement
to an HTMLElement to introduce a BodyElement between them, but
the check methods can't accomplish that.

--
John Cowan jcowan AT reutershealth.com www.reutershealth.com
www.ccil.org/~cowan
I come from under the hill, and under the hills and over the hills my paths
led. And through the air. I am he that walks unseen. I am the clue-finder,
the web-cutter, the stinging fly. I was chosen for the lucky number. --Bilbo




Archive powered by MHonArc 2.6.24.

Top of Page