ORA-DM-333-B: It is currently permitted for two elements to share an attribute node

SECTION 6.2.1 : Overview (of element nodes)

Point 10 in the list of constraints on elements nodes says:
"If an attribute node A has a parent element E, then A must be among
the attributes of E.  The data model permits attribute nodes without
parents.  Such attribute nodes must not appear among the attributes
of any element node."  And in 6.3.1 Overview (for attribute nodes)
constraint 2 is a duplicate of this constraint.

Consider the following pathological data set: two elements
E1 and E2 and one attribute A.  The attributes property for
both E1 and E2 lists A as the only attribute of these elements.
Attribute A lists E1 as its parent.  This data set meets all of 
the constraints quoted.  What is missing is a constraint that says 
that if A is an attribute of element E, then E is the parent
of A.  That is, you have a constraint on one direction of the 
pointers, but not on the other direction.

I believe namespace nodes have the same problem.

- Steve B.

Received on Monday, 16 February 2004 17:31:12 UTC