Re: A few questions

At 09:54 PM 5/19/98 -0400, Don Park wrote:
>Hi Mike,
>
>>>If an Attribute is a Node, and you call getParent on it, what should it
>>>return?
>>
>>The Element (IMHO)
>
>
>This is what I thought also until I realized that it could cause problems if
>an Attribute is shared among multiple element (this could happen if the
>attribute is FIXED or is inherited as DEFAULT value).

That's a really good point; I'm pretty sure that one SHOULD have separate
attribute objects in this scenario, but we should clarify it ...

>  Furthermore, I think
>it is confusing to have getParent returned the element when Attribute is not
>a child of the element.

Yes ... but if I have an Attribute object and I want to find out which
Element it belongs to, getParent() would be a logical way ... What do
others think?

Mike

Received on Tuesday, 19 May 1998 22:06:20 UTC