Skip to content

Should classRef/(@include/@except) work with elements inherited from a subclass? #770

@joeytakeda

Description

@joeytakeda

When trying to exclude an element from a content model, one can use @except to include all but one or more elements (much like in moduleRef):

<content>
    <classRef key="model.biblLike" except="biblStruct"/>
<content>

But this only works with elements that are direct members of that class. E.g. trying to do the same with model.inter (which includes model.biblLike) does not work:

<content>
    <classRef key="model.inter" except="biblStruct"/>
</content>

Going the other way similarly doesn't work:

<content>
    <classRef key="model.inter" include="biblStruct"/>
</content>

I can't seem to find any description in the GLs that say whether it should or not (and I know this would be mightily complicated to do), but it would be a nice thing to have (especially since the content models and inheritance can become gnarly)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions