Skip to content

XML Export | Add Missing Comment, ChoiceIndex & Length - #403

Open
DER-SSt wants to merge 3 commits into
esa:masterfrom
DER-SSt:fix/xml-ast-metadata
Open

DER-SSt wants to merge 3 commits into
esa:masterfrom
DER-SSt:fix/xml-ast-metadata

Conversation

@DER-SSt

@DER-SSt DER-SSt commented Sep 3, 2026

Copy link
Copy Markdown

See #400 for description of issue.

This PR adds additional fields to the XML export.

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exportChoiceEncodingClass() filters ChoiceAlwaysAbsent into acnChildren for the index/field metadata, but the presence-when test still scans ti.children. An always-absent alternative with a presence condition can therefore make the XML report acnEncodingClass="presence-when" while the exported presence fields and normal backend encoding use only the remaining ACN children. Please base this decision on acnChildren too and add that case.

@DER-SSt

DER-SSt commented Sep 4, 2026

Copy link
Copy Markdown
Author

exportChoiceEncodingClass() filters ChoiceAlwaysAbsent into acnChildren for the index/field metadata, but the presence-when test still scans ti.children. An always-absent alternative with a presence condition can therefore make the XML report acnEncodingClass="presence-when" while the exported presence fields and normal backend encoding use only the remaining ACN children. Please base this decision on acnChildren too and add that case.

Thank you for the quick review!
Does 65848a9 address your concern?

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. exportChoiceEncodingClass() now derives the presence-when decision and fields from the same acnChildren list that excludes ChoiceAlwaysAbsent, so the XML metadata cannot be driven by an alternative omitted from the exported ACN choice. This resolves my concern.

@DER-SSt

DER-SSt commented Sep 14, 2026

Copy link
Copy Markdown
Author

What are the next steps? Can this be merged?

@sylvesterkaczmarek

Copy link
Copy Markdown

From my review side, yes. I approved the current 65848a9 head and have no remaining change request; the actual merge decision is with the ESA maintainers.

@maxime-esa

Copy link
Copy Markdown
Collaborator

Thanks, we are monitoring and on it ; we had to address a few urgent vulnerarbilities on the XER backend, but this will come next. Sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants