-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
I created a schema chain:
base schema:
rabbitHole - sequence of elements - ref is a13:nestSequence
Schema A:
nestSequence - sequence of elements - ref is b13:nest
Schema B:
nest - element - type is c13:nestType
Schema C:
nestType - simpleType - restriction base is xs:nonExistent
I get a lot of identical errors. I thought maybe there's a message for each stage of the chain, but there appear to be more. In this case would we want an error message for each object in the chain? For example, in the output for test_combinations_02, there are two errors: one for the element that references the invalid format, and one for the format:
2013-05-17 07:48:30:666 edu.illinois.ncsa.daffodil.compiler.ProcessorFactory Error:[Schema Definition Error: Unknown time zone '5 o'clock somewhere'
Schema context: element.date2. Location line 16 column 140 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_B_06.dfdl.xsd.]
2013-05-17 07:48:30:667 edu.illinois.ncsa.daffodil.compiler.ProcessorFactory Error[Schema Definition Error: Property calendarTimeZone defined as '5 o'clock somewhere'.
Schema context: SchemaDocument::DFDLFormat. Location line 16 column 77 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/subfolder/multi_C_06_nons.dfdl.xsd.]
2013-05-17 07:48:30:667 edu.illinois.ncsa.daffodil.tdml.ParserTestCase Error[Schema Definition Error: Unknown time zone '5 o'clock somewhere'
Schema context: element.date2. Location line 16 column 140 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_B_06.dfdl.xsd.]
2013-05-17 07:48:30:667 edu.illinois.ncsa.daffodil.tdml.ParserTestCase Error[Schema Definition Error: Property calendarTimeZone defined as '5 o'clock somewhere'.
Schema context: SchemaDocument::DFDLFormat. Location line 16 column 77 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/subfolder/multi_C_06_nons.dfdl.xsd.]
Output for errorLocations_01:
[error] Test edu.illinois.ncsa.daffodil.section06.namespaces.TestNamespaces.test_errorLocations_01 failed: java.lang.Exception: Schema Definition Error: Type
{http://www.w3.org/2001/XMLSchema}nonExistent is not an XSD primitive type.
[error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
[error] Schema Definition Error: Type
nonExistent is not an XSD primitive type.
[error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
[error] Schema Definition Error: Type
nonExistent is not an XSD primitive type.
[error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
[error] Schema Definition Error: Type
nonExistent is not an XSD primitive type.
[error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
[error] Schema Definition Error: Type
nonExistent is not an XSD primitive type.
[error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
[error] Schema Definition Error: Type
nonExistent is not an XSD primitive type.
[error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
[error] at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:546)
[error] at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:444)
[error] at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:393)
[error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:256)
[error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:247)
[error] at edu.illinois.ncsa.daffodil.section06.namespaces.TestNamespaces.test_errorLocations_01(TestNamespaces.scala:87)
[error] ...