-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
I believe the recent fix for "Use of fn:function in an expression with no xmlns:fn="..." in the file should be an SDE" broke our ability to parse ISO8583 data with the schemas and data provided here:
https://github.com/DFDLSchemas/ISO8583
I get the following errors:
~/NGF/dfdl/ISO8583 (master) ../daffodil-cli/target/start parse -r ISO8583_1987 -s ISO8583Format.xsd -s ISO8583_1987.xsd ISO8583_1987_Test_Data_1.txt
[error] Compilation (ProcessorFactory) produced 5 errors/warnings.
[error] Schema Definition Error: Expression compiler reports: net.sf.saxon.trans.XPathException: XPath syntax error at char 28 in {...) then fn:false() else fn:t...}:
Prefix fn has not been declared
Schema context: element.ISO8583_1987::LocalComplexTypeDef::sequence::group.ref.Bitmaps_Group::sequence::element.PrimaryBitmap::GlobalComplexTypeDef(PrimaryBitmapType)::sequence::element.Bit001::DFDLSetVariable. Location line 59 column 113 in file:/home/jchab/NGF/dfdl/ISO8583/ISO8583_1987.xsd.
[error] Schema Definition Warning: The xs:appinfo source attribute value 'http://www.ogf.org/dfdl/' should be 'http://www.ogf.org/dfdl/dfdl-1.0/'.
Schema context: SchemaDocument. Location line 43 column 52 in file:/home/jchab/NGF/dfdl/ISO8583/ISO8583Format.xsd.
[error] Schema Definition Warning: The xs:appinfo source attribute value 'http://www.ogf.org/dfdl/' should be 'http://www.ogf.org/dfdl/dfdl-1.0/'.
Schema context: SchemaDocument. Location line 32 column 103 in file:/home/jchab/NGF/dfdl/ISO8583/ISO8583_1987.xsd.
[error] Schema Definition Warning: The xs:appinfo source attribute value 'http://www.ogf.org/dfdl/' should be 'http://www.ogf.org/dfdl/dfdl-1.0/'.
Schema context: SchemaDocument. Location line 37 column 3 in file:/home/jchab/NGF/dfdl/ISO8583/ISO8583Types.xsd.
[error] Schema Definition Warning: The xs:appinfo source attribute value 'http://www.ogf.org/dfdl/' should be 'http://www.ogf.org/dfdl/dfdl-1.0/'.
Schema context: element.Bit001. Location line 56 column 125 in file:/home/jchab/NGF/dfdl/ISO8583/ISO8583_1987.xsd.
Since we no longer have the ability to use the fn prefix for functions without declaring it, this schema is invalid to us.