Fix group delimiter generation for nested components in MessageSubclass.xsl#1098
Closed
Copilot wants to merge 2 commits into
Closed
Fix group delimiter generation for nested components in MessageSubclass.xsl#1098Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
- Changed MessageSubclass.xsl template from 'group//component' to 'component' in group-delimeter mode - This allows recursion across arbitrarily deep nested components to reach the first field - Added NestedComponentsTest.xml with minimal FIX spec for testing nested components - Added NestedComponentDelimiterTest.java to verify correct delimiter generation - Test confirms generated code contains 'super(20001, 58, ORDER);' for nested component groups - All existing tests pass, no regression Fixes #1084 Co-authored-by: chrjohn <6644028+chrjohn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix group delimiter in MessageSubclass.xsl for nested components
Fix group delimiter generation for nested components in MessageSubclass.xsl
Dec 15, 2025
Member
|
Superseded by #1097 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The XSLT template for finding group delimiters failed when the first element of a group was a component containing another component (nested ≥2 levels). The template matched
group//componentwhich only matched components as descendants of groups. During recursion into the global component tree, nodes lost their group ancestry and the template stopped matching, producing invalid code:Changes
match="group//component"tomatch="component"in the group-delimiter template, enabling recursion through arbitrarily nested componentsExample
Given a FIX dictionary where:
Generated code now correctly produces:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.w3.org/opt/hostedtoolcache/CodeQL/2.23.7/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.23.7/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.23.7/x64/codeql/xml/tools/xml-extractor.jar --fileList=/home/REDACTED/work/quickfixj/.codeql-scratch/dbs/java/working/files-to-index9538710877081472329.list --sourceArchiveDir=/home/REDACTED/work/quickfixj/.codeql-scratch/dbs/java/src --outputDir=/home/REDACTED/work/quickfixj/.codeql-scratch/dbs/java/trap/java(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.