AnsweredAssumed Answered

duplicate property definition in parallel types?

Question asked by aweber1nj on May 21, 2012
Latest reply on May 22, 2012 by aweber1nj
I am trying to get my content model finished (or at least 1.0 of it).  However, when running the model through the TestModel class, it is complaining about a "duplicate property definition" within two classes.  The two properties are named exactly the same, because they apply to both type-definitions, but not to the parent, nor to the type-siblings.

For example take the following, rudimentary types:
TypeA
–>TypeA.1
–>TypeA.2
–>TypeA.3
–>TypeA.4

Where TypeA.x are all siblings, with the same parent: TypeA.

While they all need the parent's properties to be inherited, only "TypeA.1" and "TypeA.2" require the property "td:agent" to be present on the type.  That's how it's defined, but the TestModel is complaining that I somehow am not allowed to do that?  (For programming and consistency purposes, I want the two properties on the two siblings to be identical in every way, including name.)

I do understand that an Aspect cutting across the two types would probably work here, but I'm unclear that would be a useful bit of overhead just for one property, across two sibling-types.

Can someone clarify why this is not allowed and what the recommendation might be?

Thanks in advance,
AJ

Outcomes