Hirmke Michael schreef:
Hi,

Looking at the source code of schema.pm

<code>
my $sup = $elem->{sup} or next;
push @oc, @$sup;
</code>

it already walks the superclasses.

So to get all possible attributes for a class, just ask for all "must" and "may" attributes for a class.

good to know, but nevertheless it misses all the attributes of aux
classes assigned to a class. Right?
Correct, but formally the attributes are only allowed after you add the aux class. So the trick would be to ask for all aux classes of your class using the ditcontentrule query and then ask for "must" and "may" and that should give you all possible attributes.
Cheers,

Hans

Thx.

Bye.
Michael.

Cheers,

Hans

Reply via email to