Entity attribute metadata can be published in two places according to sstc-metadata-attr-cs-01, in md:EntityDescriptor/md:Extensions or in md:EntitiesDescriptor/md:Extensions. Section 2.3 says
If this element is used within the element of an element, then only elements are to be used; elements MUST NOT be included. The enclosed attributes are bound to each within the enclosing element.
Code Version
Latest available through pip, 2.1.2
Expected Behavior
The specification seems to allow two possible behaviours for a metadata processor. It can pass md:EntitiesDescriptor/md:EntityAttributes to an output aggregate without modification, or it can take the attributes in the input aggregate and apply them to each of the entities.
If the metadata processor ingests more than one aggregate, it cannot pass through the EntityAttributes element to the output aggregate, because this would imply that the attributes would be applied to each of the output entities from all the input aggregates.
Therefore, I'd expect that pyFF to add the entity attributes to each of the entities as it ingests the aggregate.
Current Behavior
The entity attribute element from the input metadata is removed and not passed to the entities
Entity attribute metadata can be published in two places according to sstc-metadata-attr-cs-01, in
md:EntityDescriptor/md:Extensions
or inmd:EntitiesDescriptor/md:Extensions
. Section 2.3 saysCode Version
Latest available through
pip
, 2.1.2Expected Behavior
The specification seems to allow two possible behaviours for a metadata processor. It can pass
md:EntitiesDescriptor/md:EntityAttributes
to an output aggregate without modification, or it can take the attributes in the input aggregate and apply them to each of the entities.If the metadata processor ingests more than one aggregate, it cannot pass through the EntityAttributes element to the output aggregate, because this would imply that the attributes would be applied to each of the output entities from all the input aggregates.
Therefore, I'd expect that pyFF to add the entity attributes to each of the entities as it ingests the aggregate.
Current Behavior
The entity attribute element from the input metadata is removed and not passed to the entities
Steps to Reproduce
Use this input file:
I can't seem to upload an XML file in the issue, so this is the minimal.xml input: