You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache Daffodil uses both a decimal separator (textStandardDecimalSeparator) and a thousand group separator (textStandardGroupingSeparator). The group separator by default is the comma. Setting the decimal separator to be the comma as well leads to a clash. This situation arises during EDIFACT parsing either if the comma is set in the service string advise – i.e., UNA:+,? ' – or when setting the comma as default decimal separator when configuring smooks – e.g.,
val reader =EdifactReaderConfigurator(schemaUri)
reader.setDecimalSign(",")
smooks.setReaderConfig(reader)
The resulting error is
org.smooks.api.SmooksException: Failed to filter source
[..]
Caused by: org.smooks.api.SmooksException: Schema Definition Error: Non-distinct property ',' found in: textStandardGroupingSeparator, textStandardDecimalSeparator
Schema context: E0017 Location line 3334 column 14 in jar:file:.m2/repository/org/smooks/cartridges/edi/edi-schemas/2.0.0-RC1/edi-schemas-2.0.0-RC1.jar!/EDIFACT-Common/EDIFACT-Service-Segments-4.1.dfdl.xsd
A workaround is to set the Daffodil triad separator to some character that is not used in EDIFACT, like reader.setDecimalSign(",").setTriadSeparator("~"). However, it would be great if the smooks EDIFACT cartridge would take care of this issue in its default configuration
The text was updated successfully, but these errors were encountered:
Apache Daffodil uses both a decimal separator (
textStandardDecimalSeparator
) and a thousand group separator (textStandardGroupingSeparator
). The group separator by default is the comma. Setting the decimal separator to be the comma as well leads to a clash. This situation arises during EDIFACT parsing either if the comma is set in the service string advise – i.e.,UNA:+,? '
– or when setting the comma as default decimal separator when configuring smooks – e.g.,The resulting error is
A workaround is to set the Daffodil triad separator to some character that is not used in EDIFACT, like
reader.setDecimalSign(",").setTriadSeparator("~")
. However, it would be great if the smooks EDIFACT cartridge would take care of this issue in its default configurationThe text was updated successfully, but these errors were encountered: