Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Characters to escape are hard-coded in IBM_EDI_Format.dfdl.xsd #291

Open
cjmamo opened this issue Feb 17, 2024 · 0 comments
Open

Characters to escape are hard-coded in IBM_EDI_Format.dfdl.xsd #291

cjmamo opened this issue Feb 17, 2024 · 0 comments
Assignees
Labels
priority: medium type: bug Something isn't working
Milestone

Comments

@cjmamo
Copy link
Member

cjmamo commented Feb 17, 2024

Describe the bug

The characters to escape are hard-coded in IBM_EDI_Format.dfdl.xsd. This means that during unparsing, when non-default delimiters are used, characters which should not be escaped are escaped anyway.

Solving this bug is tricky because there isn't an easy way to dynamically set the characters to be escaped from the DFDL schema. This issue has been reported to the Daffodil team and a JIRA issue was created.

To Reproduce

Go to the XML-to-EDI example and remove the workaround that declares a new escape scheme. Run the example and the following will be printed to the console:

HDR*1*0*59.97*64.92*4.95*Wed Nov 15 13?:45?:28 EST 2006
CUS*user1*Harry^Fletcher*SD
ORD*1*1*364*The 40-Year-Old Virgin*29.98
ORD*2*1*299*Pulp Fiction*29.99

Expected behavior

Referencing the earlier example, the expected output should be:

HDR*1*0*59.97*64.92*4.95*Wed Nov 15 13:45:28 EST 2006
CUS*user1*Harry^Fletcher*SD
ORD*1*1*364*The 40-Year-Old Virgin*29.98
ORD*2*1*299*Pulp Fiction*29.99

Environment

  • Smooks: 2.0.0-RC3
@cjmamo cjmamo added type: bug Something isn't working priority: medium labels Feb 17, 2024
@cjmamo cjmamo added this to the v2.0.0-RC5 milestone Apr 24, 2024
@cjmamo cjmamo self-assigned this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium type: bug Something isn't working
Development

No branches or pull requests

1 participant