Well for DFDL annotations not on the group definition. We should warn that
that will be ignored and the annotation placed on the sequence or choice
itself inside the group definition.

You can annotate a group reference however, and there's an annotation
element `<dfdl:group ..../>` for that purpose.

For other annotations than appinfo with the DFDL source attribute - yes, we
should be ignoring those.



On Wed, Mar 1, 2023 at 8:24 AM Adams, Joshua <[email protected]>
wrote:

> Currently working on https://issues.apache.org/jira/browse/DAFFODIL-2668
> and from the discussion there it seems that annotations should not be
> allowed on group definitions, only on group references or the various
> children of a group definition.  Just wanted to double check to make sure
> that this is accurate as we specifically have tests
> (sequence_group_with_annotation_01 and choice_group_with_annotation_01 in
> SequenceGroup.tdml) that verify that annotations are allowed on sequence
> group definitions and choice group definitions.
>
> Just wanted to get clarification if things like
>
> <group name="g1">
>   <annotation><documentation>doc</documentation></annotation>
>   ...
> </group>
>
> should be allowed or not.
>
> Josh
>

Reply via email to