Radical Suggestion (was Re: Antwort: RE: [jdom-interest] Namespacehelp)
Lxu at copyright.com
Thu Jul 25 13:40:26 PDT 2002
> Elliotte has the best argument why we can't implement a fancy
> inheritance model: Your <table> element is either an XHTML table or a
> Furniture table and must always stay in the appropriate namespace
> regardless of where it moves in the tree.
I think in that chase your <table> elements already have NS that overwrites their parents' since you are calling them XHTML & furniture table respectively.
> Plus, my personal opinion is that if you think there are
> questions now,
> imagine if namespaces were inherited! People would move elements,
> they'd change namespaces, and subtle bugs would waste
> countless hours.
> It'd be a nightmare!
My initial misunderstanding is that inheritance will automatically take place when the child does not have a NS explicitly set. It seems that it would be a nice feature to have from a coding stand point. If a NS already exists for the child, then it can ignore the parent's. I don't see too much a problem.
More information about the jdom-interest