You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by ol...@apache.org on 2024/10/08 20:04:44 UTC

(daffodil) branch main updated: Address unexpected warnings

This is an automated email from the ASF dual-hosted git repository.

olabusayo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new 639f40888 Address unexpected warnings
639f40888 is described below

commit 639f40888c40969b95a7af23e0e2c6797596407f
Author: olabusayoT <50...@users.noreply.github.com>
AuthorDate: Tue Sep 17 15:47:16 2024 -0400

    Address unexpected warnings
    
    - fix schemas to remove some unexpected warnings
    - remove encodingErrorPolicy replace and use GeneralFormat instead
    - add suppressSchemaDefinitionWarnings to some schema elements
    
    DAFFODIL-2926
---
 .../org/apache/daffodil/codegen/c/ex_nums.dfdl.xsd |    2 +-
 .../choiceBranchRanges/choiceBranchKeyRanges.tdml  |    2 +-
 .../daffodil/extensions/repType/repType.tdml       |   48 +
 .../daffodil/layers/exampleCheckDigit.dfdl.xsd     |    2 +
 .../general/testImportOtherAnnotationSchema.tdml   |    8 +
 .../section00/general/testUnparserGeneral.tdml     |    5 +-
 .../daffodil/section00/general/tunables.tdml       |    6 +-
 .../SchemaDefinitionErrors.tdml                    |    6 +-
 .../apache/daffodil/section05/facets/Facets.tdml   |    2 +-
 .../daffodil/section05/simple_types/BitOrder.tdml  |    4 +-
 .../section05/simple_types/SimpleTypes.tdml        |   34 +-
 .../simple_types/nonNegativeInteger.dfdl.xsd       |    5 +-
 .../section06/entities/DefaultProperties.dfdl.xsd  |    2 +-
 .../section06/namespaces/ABC_invalid.dfdl.xsd      |    2 +-
 .../section06/namespaces/multi_A_03.dfdl.xsd       |    4 +-
 .../section06/namespaces/multi_base_03.dfdl.xsd    |    4 +-
 .../section06/namespaces/multi_base_09.dfdl.xsd    |  Bin 7634 -> 7572 bytes
 .../daffodil/section06/namespaces/namespaces.tdml  |    9 +-
 .../org/apache/daffodil/section06/namespaces/shi   |    2 +-
 .../section07/discriminators/discriminator.tdml    |   48 +-
 .../discriminators/multipleDiscriminators.tdml     |    2 +-
 .../daffodil/section07/variables/variables.tdml    |    7 +
 .../property_scoping/PropertyScoping.tdml          |    4 +-
 .../PropertiesDefined.dfdl.xsd                     |    4 +-
 .../PropertiesNotDefined.dfdl.xsd                  |    2 +-
 .../representation_properties/RepProps.tdml        |   19 +-
 .../representation_properties/encodings.tdml       |    2 +
 .../section12/aligned_data/Aligned_Data.tdml       |   12 +-
 .../section12/lengthKind/PrefixedTests.tdml        |    4 +-
 .../apache/daffodil/section13/boolean/boolean.tdml |   13 +-
 .../daffodil/section13/nillable/nillable.tdml      |    4 +-
 .../text_number_props/TextNumberProps.tdml         |   14 +-
 .../section14/sequence_groups/SequenceGroup.tdml   | 1111 ++++++++++----------
 .../SequenceGroupInitiatedContent.tdml             |    2 +-
 .../unordered_sequences/UnorderedSequences.tdml    |    2 +-
 .../section15/choice_groups/choice1773.tdml        |   12 +-
 .../section15/choice_groups/testSharedGroups.tdml  |   18 +
 .../section16/array_optional_elem/ArrayComb.tdml   |   12 +-
 .../array_optional_elem/ArrayOptionalElem.tdml     |   20 +-
 .../UnparseArrayDelimitedOptionalElem.tdml         |    7 +-
 .../arrays_optional_elements.dfdl.xsd              |    2 +-
 .../array_optional_elem/backtracking.tdml          |    2 +-
 .../section17/calc_value_properties/AQ.tdml        |    2 +-
 .../section17/calc_value_properties/AR.tdml        |    2 +-
 .../computedLengthFields.tdml                      |    4 +-
 .../calc_value_properties/inputValueCalc.tdml      |    7 +-
 .../calc_value_properties/outputValueCalc2.tdml    |    4 +-
 .../section23/dfdl_expressions/expressions.tdml    |   60 +-
 .../section23/dfdl_functions/Functions.tdml        |   10 +-
 .../runtime_properties/runtime-properties.tdml     |    8 +-
 .../resources/org/apache/daffodil/udf/udfs.tdml    |    2 +-
 .../daffodil/unparser/parseUnparseMode.dfdl.xsd    |    2 +-
 .../org/apache/daffodil/usertests/SepTests.tdml    |   21 +-
 .../section05/simple_types/TestSimpleTypes.scala   |    2 -
 .../apache/daffodil/usertests/TestSepTests.scala   |    4 +-
 55 files changed, 866 insertions(+), 732 deletions(-)

diff --git a/daffodil-codegen-c/src/test/resources/org/apache/daffodil/codegen/c/ex_nums.dfdl.xsd b/daffodil-codegen-c/src/test/resources/org/apache/daffodil/codegen/c/ex_nums.dfdl.xsd
index 56c911b4b..64178ce42 100644
--- a/daffodil-codegen-c/src/test/resources/org/apache/daffodil/codegen/c/ex_nums.dfdl.xsd
+++ b/daffodil-codegen-c/src/test/resources/org/apache/daffodil/codegen/c/ex_nums.dfdl.xsd
@@ -142,7 +142,7 @@
                           dfdl:byteOrder="littleEndian"/>
               <xs:element name="le_int8" type="xs:byte"
                           dfdl:byteOrder="littleEndian"/>
-              <xs:element name="le_int46" type="xs:integer"
+              <xs:element name="le_int46" type="xs:long"
                           dfdl:byteOrder="littleEndian"
                           dfdl:length="46"
                           dfdl:lengthKind="explicit"
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/extensions/choiceBranchRanges/choiceBranchKeyRanges.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/extensions/choiceBranchRanges/choiceBranchKeyRanges.tdml
index 8b22851c9..ef5520bc9 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/extensions/choiceBranchRanges/choiceBranchKeyRanges.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/extensions/choiceBranchRanges/choiceBranchKeyRanges.tdml
@@ -48,7 +48,7 @@
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="tag" type="tns:uint8"/>
-                <xs:choice dfdl:choiceDispatchKey="{ tns:tag }" >
+                <xs:choice dfdl:choiceDispatchKey="{ xs:string(tns:tag) }" >
                   <xs:element name="a" type="tns:emptyElt" dfdl:choiceBranchKey="0"/>
                   <xs:element name="b" type="tns:emptyElt" dfdl:choiceBranchKey="1 5" dfdlx:choiceBranchKeyRanges="10 100 110 255"/>
                   <xs:element name="c" type="tns:emptyElt" dfdl:choiceBranchKey="2 3 4"/>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/extensions/repType/repType.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/extensions/repType/repType.tdml
index 6c1f9f549..508605228 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/extensions/repType/repType.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/extensions/repType/repType.tdml
@@ -804,6 +804,14 @@
         </root1>
       </tdml:dfdlInfoset>
     </tdml:infoset>
+    <tdml:warnings>
+      <tdml:warning>FacetsContradict</tdml:warning>
+      <tdml:warning>'t'</tdml:warning>
+      <tdml:warning>three</tdml:warning>
+      <tdml:warning>contradicts</tdml:warning>
+      <tdml:warning>minLength</tdml:warning>
+      <tdml:warning>maxLength</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="repType_length_facet_02"
@@ -824,6 +832,14 @@
       <tdml:error>minLength</tdml:error>
       <tdml:error>2</tdml:error>
     </tdml:validationErrors>
+    <tdml:warnings>
+      <tdml:warning>FacetsContradict</tdml:warning>
+      <tdml:warning>'t'</tdml:warning>
+      <tdml:warning>three</tdml:warning>
+      <tdml:warning>contradicts</tdml:warning>
+      <tdml:warning>minLength</tdml:warning>
+      <tdml:warning>maxLength</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="repType_length_facet_03"
@@ -844,6 +860,14 @@
       <tdml:error>maxLength</tdml:error>
       <tdml:error>3</tdml:error>
     </tdml:validationErrors>
+    <tdml:warnings>
+      <tdml:warning>FacetsContradict</tdml:warning>
+      <tdml:warning>'t'</tdml:warning>
+      <tdml:warning>three</tdml:warning>
+      <tdml:warning>contradicts</tdml:warning>
+      <tdml:warning>minLength</tdml:warning>
+      <tdml:warning>maxLength</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="repType_length_facet_04"
@@ -863,6 +887,14 @@
       <tdml:error>ex:field</tdml:error>
       <tdml:error>facet length (1)</tdml:error>
     </tdml:validationErrors>
+    <tdml:warnings>
+      <tdml:warning>FacetsContradict</tdml:warning>
+      <tdml:warning>'t'</tdml:warning>
+      <tdml:warning>three</tdml:warning>
+      <tdml:warning>contradicts</tdml:warning>
+      <tdml:warning>minLength</tdml:warning>
+      <tdml:warning>maxLength</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="repType_length_facet_05"
@@ -878,6 +910,14 @@
         </root2>
       </tdml:dfdlInfoset>
     </tdml:infoset>
+    <tdml:warnings>
+      <tdml:warning>FacetsContradict</tdml:warning>
+      <tdml:warning>'t'</tdml:warning>
+      <tdml:warning>three</tdml:warning>
+      <tdml:warning>contradicts</tdml:warning>
+      <tdml:warning>minLength</tdml:warning>
+      <tdml:warning>maxLength</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="repType_length_facet_06"
@@ -897,6 +937,14 @@
       <tdml:error>ex:field</tdml:error>
       <tdml:error>facet length (1)</tdml:error>
     </tdml:validationErrors>
+    <tdml:warnings>
+      <tdml:warning>FacetsContradict</tdml:warning>
+      <tdml:warning>'t'</tdml:warning>
+      <tdml:warning>three</tdml:warning>
+      <tdml:warning>contradicts</tdml:warning>
+      <tdml:warning>minLength</tdml:warning>
+      <tdml:warning>maxLength</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:defineSchema name="repType-Negative.dfdl.xsd">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/layers/exampleCheckDigit.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/layers/exampleCheckDigit.dfdl.xsd
index 00fd819c2..e3c8f0d99 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/layers/exampleCheckDigit.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/layers/exampleCheckDigit.dfdl.xsd
@@ -24,6 +24,7 @@
            xmlns:fn="http://www.w3.org/2005/xpath-functions"
            xmlns:cd="urn:org.apache.daffodil.layers.checkDigit"
            xmlns:ex="http://example.com"
+           xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
            targetNamespace="http://example.com">
 
   <include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd" />
@@ -69,6 +70,7 @@
                  dfdl:inputValueCalc='{ $cd:checkDigit }'/>
         <element name="invalidCheckDigit" type="ex:alwaysInvalid" minOccurs="0"
                  dfdl:occursCountKind="expression"
+                 daf:suppressSchemaDefinitionWarnings="facetExplicitLengthOutOfRange"
                  dfdl:occursCount="{ if (../checkDigit eq ../computedCheckDigit) then 0 else 1 }"/>
       </sequence> <!-- checkDigit DFDL variable scope ends here -->
     </complexType>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testImportOtherAnnotationSchema.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testImportOtherAnnotationSchema.tdml
index 009717c30..4a5c7fb8c 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testImportOtherAnnotationSchema.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testImportOtherAnnotationSchema.tdml
@@ -34,6 +34,10 @@
         <tns:r1>foo</tns:r1>
       </tdml:dfdlInfoset>
     </tdml:infoset>
+    <tdml:warnings>
+      <tdml:warning>Non-DFDL Schema file ignored</tdml:warning>
+      <tdml:warning>otherAnnotationLanguage.xsd</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="importOtherAnnotationSchema2" root="r2" model="schemaWithOtherAnnotations.dfdl.xsd">
@@ -43,6 +47,10 @@
         <tns:r2>foo</tns:r2>
       </tdml:dfdlInfoset>
     </tdml:infoset>
+    <tdml:warnings>
+      <tdml:warning>Non-DFDL Schema file ignored</tdml:warning>
+      <tdml:warning>otherAnnotationLanguage.xsd</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
 </tdml:testSuite>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testUnparserGeneral.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testUnparserGeneral.tdml
index ef3403ce5..f4dee13dc 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testUnparserGeneral.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/testUnparserGeneral.tdml
@@ -19,6 +19,7 @@
 <tdml:testSuite xmlns:tdml="http://www.ibm.com/xmlns/dfdl/testData"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
   xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ex="http://example.com"
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   suiteName="generalUnparserTests">
 
   <tdml:defineSchema name="fixedLengthStrings">
@@ -32,7 +33,9 @@
         <xs:complexType>
           <xs:sequence dfdl:initiator="[" dfdl:separator="," dfdl:terminator="]">
 	    <xs:element name="s1" dfdl:lengthKind="explicit" dfdl:length="0" type="xs:string" dfdl:textPadKind='none'/>
-	    <xs:element name="s2" dfdl:lengthKind="explicit" dfdl:length="1" type="xs:string" dfdl:textPadKind='none' default="broken"/>
+	    <xs:element name="s2" dfdl:lengthKind="explicit" dfdl:length="1" type="xs:string" dfdl:textPadKind='none'
+                  daf:suppressSchemaDefinitionWarnings="noEmptyDefault"
+                  default="broken"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/tunables.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/tunables.tdml
index cc08e4448..135f82ac4 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/tunables.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section00/general/tunables.tdml
@@ -489,7 +489,7 @@
       trailingSkip="0" encoding="US-ASCII" alignment="1" alignmentUnits="bytes" initiator=""
       terminator="" separator="" ignoreCase="no" occursCountKind="implicit" lengthUnits="bytes"
       initiatedContent="no" textPadKind="none" truncateSpecifiedLengthString="no" textTrimKind="none"
-      escapeSchemeRef="" encodingErrorPolicy="replace" fillByte="%NUL;" />
+      escapeSchemeRef="" encodingErrorPolicy="replace" fillByte="%NUL;" floating="no" />
 
 		<xs:element name="root">
 			<xs:complexType>
@@ -551,7 +551,7 @@
       trailingSkip="0" encoding="US-ASCII" alignment="1" alignmentUnits="bytes" initiator=""
       terminator="" separator="" ignoreCase="no" occursCountKind="implicit" lengthUnits="bytes"
       initiatedContent="no" textPadKind="none" truncateSpecifiedLengthString="no" textTrimKind="none"
-      escapeSchemeRef="" encodingErrorPolicy="replace" textBidi="yes"/>
+      escapeSchemeRef="" encodingErrorPolicy="replace" textBidi="yes" floating="no"/>
 
 		<xs:element name="root">
 			<xs:complexType>
@@ -729,7 +729,7 @@
       trailingSkip="0" encoding="US-ASCII" alignment="1" alignmentUnits="bytes" initiator=""
       terminator="" separator="" ignoreCase="no" occursCountKind="implicit" lengthUnits="bytes"
       initiatedContent="no" textPadKind="none" truncateSpecifiedLengthString="no" textTrimKind="none"
-      escapeSchemeRef="" textBidi="no" fillByte="%NUL;" />
+      escapeSchemeRef="" textBidi="no" fillByte="%NUL;" floating="no" />
 
 		<xs:element name="root">
 			<xs:complexType>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section02/schema_definition_errors/SchemaDefinitionErrors.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section02/schema_definition_errors/SchemaDefinitionErrors.tdml
index f8c0fedb1..0489d4e4b 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section02/schema_definition_errors/SchemaDefinitionErrors.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section02/schema_definition_errors/SchemaDefinitionErrors.tdml
@@ -77,13 +77,13 @@
       calendarLanguage="en" calendarPatternKind="implicit"
       calendarTimeZone="UTC" decimalSigned="yes"
       documentFinalTerminatorCanBeMissing="no"
-      emptyValueDelimiterPolicy="both" encodingErrorPolicy="error"
-      encoding="utf-8" escapeSchemeRef="" fillByte="%#r20;" ignoreCase="no"
+      emptyValueDelimiterPolicy="both" encodingErrorPolicy="replace"
+      encoding="utf-8" escapeSchemeRef="" fillByte="%#r20;" floating="no" ignoreCase="no"
       initiatedContent="no" initiator="" lengthKind="delimited"
       lengthUnits="bytes" occursCountKind="parsed" outputNewLine="%LF;"
       representation="text" separator="" separatorPosition="infix"
       separatorSuppressionPolicy="anyEmpty" sequenceKind="ordered"
-      terminator="" textBooleanPadCharacter="%SP;"
+      terminator="" textBooleanPadCharacter="%SP;" textBidi="no"
       textCalendarJustification="left" textCalendarPadCharacter="%SP;"
       textNumberCheckPolicy="lax" textNumberJustification="right"
       textNumberPadCharacter="%SP;"
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section05/facets/Facets.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section05/facets/Facets.tdml
index 3592027a2..3faeeab31 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section05/facets/Facets.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section05/facets/Facets.tdml
@@ -2910,7 +2910,7 @@
           <xs:element name="e1" type="xs:int"
             dfdl:lengthKind="delimited" />
           <xs:element name="e2" nillable="true" type="ex:st8"
-            dfdl:lengthKind="delimited" dfdl:nilValueDelimiterPolicy="terminator"
+            dfdl:lengthKind="delimited"
             dfdl:nilValue="567 %ES;" dfdl:nilKind="literalValue">
             <xs:annotation>
               <xs:appinfo source="http://www.ogf.org/dfdl/">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/BitOrder.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/BitOrder.tdml
index 415f7fab8..58e1c1ddb 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/BitOrder.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/BitOrder.tdml
@@ -633,12 +633,12 @@
       textStandardZeroRep="0" textStandardInfinityRep="Inf" textStandardNaNRep="NaN"
       textNumberPattern="#,##0.###;-#,##0.###" textNumberRounding="explicit"
       textNumberRoundingMode="roundUnnecessary" textNumberRoundingIncrement="0" decimalSigned="yes"
-      encodingErrorPolicy="error" sequenceKind="ordered" calendarFirstDayOfWeek='Sunday'
+      encodingErrorPolicy="replace" sequenceKind="ordered" calendarFirstDayOfWeek='Sunday'
       calendarDaysInFirstWeek='4' calendarTimeZone='UTC' calendarCheckPolicy='strict' calendarLanguage='en'
       bitOrder="leastSignificantBitFirst" outputNewLine="%LF;" textPadKind="none" fillByte="%#r20;"
       truncateSpecifiedLengthString="no" textStringPadCharacter="%SP;" textNumberPadCharacter="%SP;"
       textBooleanPadCharacter="%SP;" textCalendarPadCharacter="%SP;" textCalendarJustification="left"
-      textNumberJustification="right" textOutputMinLength="0" />
+      textNumberJustification="right" textOutputMinLength="0" floating="no" textBidi="no" />
 
     <xs:element name="e1" dfdl:lengthKind='implicit'>
       <xs:complexType>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/SimpleTypes.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/SimpleTypes.tdml
index 2aabfbe06..d3562569b 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/SimpleTypes.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/SimpleTypes.tdml
@@ -25,10 +25,10 @@
   defaultRoundTrip="true">
 
   <tdml:defineSchema name="SimpleTypes-Embedded.dfdl.xsd">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="implicit" representation="text"
-        lengthUnits="bytes" encoding="US-ASCII" initiator="" terminator=""
-        separator="" textNumberCheckPolicy="lax" ignoreCase="no" textNumberRep="standard"
+        lengthUnits="bytes" encoding="US-ASCII" initiator="" terminator="" calendarTimeZone="UTC"
+                 separator="" textNumberCheckPolicy="lax" ignoreCase="no" textNumberRep="standard"
         textPadKind="padChar" textTrimKind="padChar"/>
     <xs:element name="double" type="xs:double"/>
     <xs:element name="int" type="xs:int"/>
@@ -50,8 +50,9 @@
       dfdl:length="13" />
     <xs:element name="int02" type="xs:int" dfdl:lengthKind="explicit"
       dfdl:length="11" />
-    <xs:element name="int03" type="xs:int" dfdl:representation="binary"
-      dfdl:binaryNumberRep="binary" />
+    <xs:element name="int03" type="xs:int" dfdl:binaryNumberRep="binary"
+                dfdl:lengthKind="explicit"
+                dfdl:length="4"/>
     <xs:element name="int04" type="xs:int" dfdl:lengthKind="explicit"
       dfdl:length="10" />
     <xs:element name="int05" type="xs:int" dfdl:lengthKind="explicit"
@@ -159,12 +160,9 @@
       dfdl:lengthKind="explicit" dfdl:length="{ 8 }" />
     <xs:element name="dateTimeText" type="xs:dateTime" dfdl:calendarPattern="yyyy.MM.dd G 'at' HH:mm:ss ZZZZ" dfdl:calendarPatternKind="explicit"
       dfdl:lengthKind="explicit" dfdl:length="{ 35 }" />
-    <xs:element name="dateTextInvalid" type="xs:date" dfdl:calendarPattern="EEEE, MMM d, ''yy" dfdl:calendarPatternKind="explicit"
-      dfdl:lengthKind="implicit" dfdl:inputValueCalc="{ xs:string('Wday, July 10, 1996') }" />
-    <xs:element name="timeTextInvalid" type="xs:time" dfdl:calendarPattern="h:mm a" dfdl:calendarPatternKind="explicit"
-      dfdl:lengthKind="implicit" dfdl:inputValueCalc="{ xs:string('not a time') }" />
-    <xs:element name="dateTimeTextInvalid" type="xs:dateTime" dfdl:calendarPattern="yyyy.MM.dd G 'at' HH:mm:ss ZZZZ" dfdl:calendarPatternKind="explicit"
-      dfdl:lengthKind="implicit" dfdl:inputValueCalc="{ xs:string('not a date time') }" />
+    <xs:element name="dateTextInvalid" type="xs:date" dfdl:inputValueCalc="{ xs:string('Wday, July 10, 1996') }" />
+    <xs:element name="timeTextInvalid" type="xs:time" dfdl:inputValueCalc="{ xs:string('not a time') }" />
+    <xs:element name="dateTimeTextInvalid" type="xs:dateTime" dfdl:inputValueCalc="{ xs:string('not a date time') }" />
 
     <xs:element name="limits" dfdl:lengthKind="implicit">
       <xs:complexType>
@@ -205,9 +203,9 @@
   </tdml:defineSchema>
 
   <tdml:defineSchema name="SimpleTypes-binary">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" representation="binary"
-      lengthUnits="bytes"
+      lengthUnits="bytes" calendarTimeZone="UTC"
       textPadKind="padChar" textTrimKind="padChar" />
 
     <xs:element name="integer01" type="xs:integer" />
@@ -542,19 +540,21 @@
 
   <tdml:parserTestCase name="warning_exercise" root="int03"
     model="SimpleTypes-Embedded.dfdl.xsd"
-    description="A warning message should be generated - use of binaryNumperRep 'binary' with representation 'text'- DFDL-2-012R">
+    description="A warning message should be generated - use of binaryNumperRep 'binary' with representation 'text'- DFDL-2-012R"
+    ignoreUnexpectedWarnings="false">
 
     <tdml:document>
-      <tdml:documentPart type="byte">00000025</tdml:documentPart>
+      <tdml:documentPart type="text">  37</tdml:documentPart>
     </tdml:document>
     <tdml:infoset>
       <tdml:dfdlInfoset xmlns:xs="http://www.w3.org/2001/XMLSchema"
-        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <int03 xsi:type="xs:int">37</int03>
       </tdml:dfdlInfoset>
     </tdml:infoset>
     <tdml:warnings>
-      <tdml:warning /><!-- don't care what message is -->
+      <tdml:warning>binaryNumberRep</tdml:warning>
+      <tdml:warning>ignored</tdml:warning>
     </tdml:warnings>
   </tdml:parserTestCase>
 
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/nonNegativeInteger.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/nonNegativeInteger.dfdl.xsd
index 5b8c64e9a..ee36212d1 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/nonNegativeInteger.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section05/simple_types/nonNegativeInteger.dfdl.xsd
@@ -26,15 +26,14 @@
 		schemaLocation="/IBMdefined/GeneralPurposeFormat.xsd" />
 	<xsd:annotation>
 		<xsd:appinfo source="http://www.ogf.org/dfdl/">
-			<dfdl:format ref="fmt:GeneralPurposeFormat" />
+			<dfdl:format ref="fmt:GeneralPurposeFormat" encodingErrorPolicy="replace"/>
 		</xsd:appinfo>
 	</xsd:annotation>
 
 	<xsd:element dfdl:initiator="Date:%SP;" dfdl:terminator="%NL;"
 		ibmSchExtn:docRoot="true" name="Date">
 		<xsd:complexType>
-			<xsd:sequence dfdl:initiator="" dfdl:separator="%SP;"
-				dfdl:separatorPolicy="suppressed">
+			<xsd:sequence dfdl:initiator="" dfdl:separator="%SP;">
 				<xsd:element dfdl:length="2" dfdl:lengthKind="explicit"
 					dfdl:textNumberPattern="#0" ibmDfdlExtn:sampleValue="1" name="Day">
 					<xsd:simpleType>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section06/entities/DefaultProperties.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section06/entities/DefaultProperties.dfdl.xsd
index 9fce2cb26..a8d3e1519 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section06/entities/DefaultProperties.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section06/entities/DefaultProperties.dfdl.xsd
@@ -44,7 +44,7 @@ xmlns:tns="http://example.com">
 					initiatedContent="no" initiator="" leadingSkip="0" lengthKind="delimited"
 					lengthUnits="characters" nilKind="literalValue" nilValueDelimiterPolicy="none"
 					occursCountKind="fixed" outputNewLine="%CR;%LF;" prefixIncludesPrefixLength="no"
-					representation="text" separator="," separatorPolicy="required"
+					representation="text" separator=","
 					separatorPosition="infix" sequenceKind="ordered" terminator="" textBidi="no"
 					textBooleanFalseRep="false" textBooleanJustification="left"
 					textBooleanPadCharacter="%SP;" textBooleanTrueRep="true"
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/ABC_invalid.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/ABC_invalid.dfdl.xsd
index 91d2c52f6..0b9461cc2 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/ABC_invalid.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/ABC_invalid.dfdl.xsd
@@ -108,7 +108,7 @@
   <xsd:annotation>
     <xsd:appinfo source="http://www.ogf.org/dfdl/">
       <dfdl:format ref="tns:GeneralPurposeFormat"
-        separatorSuppressionPolicy="trailingEmpty" />
+        separatorSuppressionPolicy="trailingEmpty"/>
     </xsd:appinfo>
   </xsd:annotation>
 </xsd:schema>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_A_03.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_A_03.dfdl.xsd
index 7567b97de..f96246a9e 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_A_03.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_A_03.dfdl.xsd
@@ -35,7 +35,7 @@
         byteOrder="littleEndian" calendarCheckPolicy='strict'
         calendarDaysInFirstWeek='4' calendarFirstDayOfWeek='Sunday'
         calendarLanguage='en' calendarPatternKind='implicit' calendarTimeZone='UTC'
-        encoding="ASCII" encodingErrorPolicy="error" escapeSchemeRef=""
+        encoding="ASCII" encodingErrorPolicy="replace" escapeSchemeRef=""
         fillByte="%#r20;" ignoreCase="no" initiatedContent="no" initiator=""
         leadingSkip='0' occursCountKind="parsed" outputNewLine="%LF;"
         representation="text" separator="" separatorPosition="infix"
@@ -45,7 +45,7 @@
         textNumberPadCharacter="%SP;" textNumberRep="standard" textOutputMinLength="0"
         textPadKind="none" textStringPadCharacter="%SP;" textTrimKind="none"
         trailingSkip="0" truncateSpecifiedLengthString="no" 
-        emptyValueDelimiterPolicy="none"/>
+        emptyValueDelimiterPolicy="none" floating="no" textBidi="no" textStandardBase="10"/>
     </xs:appinfo>
   </xs:annotation>
   
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_03.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_03.dfdl.xsd
index dd56dc08c..f1085d867 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_03.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_03.dfdl.xsd
@@ -21,12 +21,12 @@
 
   <xs:annotation>
     <xs:appinfo source="http://www.ogf.org/dfdl/">
-      <dfdl:format sequenceKind='ordered' bitOrder="mostSignificantBitFirst" encodingErrorPolicy="error" separator="'" initiator="" terminator="" leadingSkip='0' textTrimKind="none" initiatedContent="no"
+      <dfdl:format sequenceKind='ordered' bitOrder="mostSignificantBitFirst" encodingErrorPolicy="replace" separator="'" initiator="" terminator="" leadingSkip='0' textTrimKind="none" initiatedContent="no"
         separatorPosition="infix" ignoreCase="no" separatorSuppressionPolicy="anyEmpty" representation="text" 
         textNumberRep="standard" lengthKind="delimited" encoding="ASCII"
         alignment="implicit" alignmentUnits="bytes" trailingSkip="0" outputNewLine="%LF;"
         fillByte="%SP;" truncateSpecifiedLengthString="yes" escapeSchemeRef=""
-        textPadKind='none' byteOrder="littleEndian"/>
+        textPadKind='none' byteOrder="littleEndian" floating="no" textBidi="no"/>
     </xs:appinfo>
   </xs:annotation>
    
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd
index 7f3f21a7b..a148af903 100644
Binary files a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd and b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd differ
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/namespaces.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/namespaces.tdml
index cc68a5941..47c40bb3a 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/namespaces.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/namespaces.tdml
@@ -45,7 +45,7 @@
     <dfdl:format ref="gpf:GeneralPurposeFormat" separator=""
       initiator="" terminator="" leadingSkip='0' textTrimKind="none"
       initiatedContent="no" ignoreCase="no" representation="text"
-      textNumberRep="standard" lengthKind="delimited" encoding="ASCII" />
+      textNumberRep="standard" lengthKind="delimited" encoding="ASCII" encodingErrorPolicy="replace"/>
 
     <xs:import namespace="http://a01.com"
       schemaLocation="/org/apache/daffodil/section06/namespaces/multi_A_01.dfdl.xsd" />
@@ -2353,7 +2353,6 @@
     Schema: IncorrectAppinfoSource
     Root: basic
     Purpose: This test demonstrates that a warning is given when the appinfo source is not http://www.ogf.org/dfdl/
-    Currently tdml:warnings are not implemented so this test needs a manual check for the warning. Once that has been implemented this can be changed to automated.
   -->
 
   <tdml:parserTestCase name="incorrectAppinfoSource"
@@ -2364,9 +2363,9 @@
         <basic>test</basic>
       </tdml:dfdlInfoset>
     </tdml:infoset>
-    <!--tdml:warnings>
-    <tdml:warning>The xs:appinfo source attribute value 'http://www.ogf.org/dfdl/dfdl-1.0/' should be 'http://www.ogf.org/dfdl/'.</tdml:warning>
-    </tdml:warnings-->
+    <tdml:warnings>
+      <tdml:warning>The xs:appinfo source attribute value 'http://www.ogf.org/dfdl/dfdl-1.0/' should be 'http://www.ogf.org/dfdl/'.</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
   
   <!--
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/shi b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/shi
index 780c70c89..80f28346c 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/shi
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section06/namespaces/shi
@@ -24,7 +24,7 @@
     <shi:appinfo source="http://www.ogf.org/dfdl/">
       <dfdl:format ref="GeneralFormat" separator="shi" initiator="shi" terminator="shi,shi" leadingSkip='0' lengthUnits="characters" textTrimKind="none" 
       initiatedContent="no"
-        separatorPosition="infix" ignoreCase="no" separatorPolicy="suppressed" representation="text" textNumberRep="standard" 
+        separatorPosition="infix" ignoreCase="no" representation="text" textNumberRep="standard"
         lengthKind="delimited" encoding="US-ASCII" alignment="implicit" alignmentUnits="bytes" trailingSkip="0"/>
     </shi:appinfo>
   </shi:annotation>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/discriminator.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/discriminator.tdml
index ff985f255..347c56039 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/discriminator.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/discriminator.tdml
@@ -429,11 +429,13 @@
 
                   <xs:complexType>
                     <xs:sequence>
-                      <xs:annotation>
-                        <xs:appinfo source="http://www.ogf.org/dfdl/">
-                          <dfdl:discriminator><![CDATA[{ fn:true() }]]></dfdl:discriminator>
-                        </xs:appinfo>
-                      </xs:annotation>
+                      <xs:sequence>
+                        <xs:annotation>
+                          <xs:appinfo source="http://www.ogf.org/dfdl/">
+                            <dfdl:discriminator><![CDATA[{ fn:true() }]]></dfdl:discriminator>
+                          </xs:appinfo>
+                        </xs:annotation>
+                      </xs:sequence>
                       <xs:element name="str" type="xs:string"
                         dfdl:lengthKind="explicit" dfdl:length="{ 80 }" /> <!-- fails because there is no data -->
                     </xs:sequence>
@@ -786,11 +788,13 @@
                 <xs:element name="a1">
                   <xs:complexType>
                     <xs:sequence>
-                      <xs:annotation>
-                        <xs:appinfo source="http://www.ogf.org/dfdl/">
-                          <dfdl:discriminator><![CDATA[{ fn:false() }]]></dfdl:discriminator>
-                        </xs:appinfo>
-                      </xs:annotation>
+                      <xs:sequence>
+                        <xs:annotation>
+                          <xs:appinfo source="http://www.ogf.org/dfdl/">
+                            <dfdl:discriminator><![CDATA[{ fn:false() }]]></dfdl:discriminator>
+                          </xs:appinfo>
+                        </xs:annotation>
+                      </xs:sequence>
                       <xs:element name="str" type="xs:string"
                         dfdl:lengthKind="explicit" dfdl:length="{ 3 }" />
                     </xs:sequence>
@@ -844,11 +848,13 @@
                 <xs:element name="a1">
                   <xs:complexType>
                     <xs:sequence>
-                      <xs:annotation>
-                        <xs:appinfo source="http://www.ogf.org/dfdl/">
-                          <dfdl:discriminator><![CDATA[{ fn:true() }]]></dfdl:discriminator>
-                        </xs:appinfo>
-                      </xs:annotation>
+                      <xs:sequence>
+                        <xs:annotation>
+                          <xs:appinfo source="http://www.ogf.org/dfdl/">
+                            <dfdl:discriminator><![CDATA[{ fn:true() }]]></dfdl:discriminator>
+                          </xs:appinfo>
+                        </xs:annotation>
+                      </xs:sequence>
                       <xs:element name="num" dfdl:lengthKind="delimited"
                         type="xs:int" minOccurs="1" maxOccurs="1" />
                     </xs:sequence>
@@ -877,11 +883,13 @@
                 <xs:element name="a1">
                   <xs:complexType>
                     <xs:sequence>
-                      <xs:annotation>
-                        <xs:appinfo source="http://www.ogf.org/dfdl/">
-                          <dfdl:discriminator><![CDATA[{ fn:false() }]]></dfdl:discriminator>
-                        </xs:appinfo>
-                      </xs:annotation>
+                      <xs:sequence>
+                        <xs:annotation>
+                          <xs:appinfo source="http://www.ogf.org/dfdl/">
+                            <dfdl:discriminator><![CDATA[{ fn:false() }]]></dfdl:discriminator>
+                          </xs:appinfo>
+                        </xs:annotation>
+                      </xs:sequence>
                       <xs:element name="num" dfdl:lengthKind="delimited"
                         type="xs:int" minOccurs="1" maxOccurs="1" />
                     </xs:sequence>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/multipleDiscriminators.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/multipleDiscriminators.tdml
index d139dee10..c835ef378 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/multipleDiscriminators.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section07/discriminators/multipleDiscriminators.tdml
@@ -24,7 +24,7 @@
 
   <tdml:defineSchema name="multipleDiscriminators">
 
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
 
     <dfdl:format ref="ex:GeneralFormat" />
 
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section07/variables/variables.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section07/variables/variables.tdml
index 60506dbfa..c7f581357 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section07/variables/variables.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section07/variables/variables.tdml
@@ -2647,6 +2647,13 @@
         </root>
       </tdml:dfdlInfoset>
     </tdml:infoset>
+    <!-- test will fail after escapeScheme is refactored -->
+    <tdml:warnings>
+      <tdml:warning>Cannot set variable</tdml:warning>
+      <tdml:warning>EscapeChar</tdml:warning>
+      <tdml:warning>after reading</tdml:warning>
+      <tdml:warning>default value</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="escapeCharVars_02" root="root" model="escapeCharVars">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section08/property_scoping/PropertyScoping.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section08/property_scoping/PropertyScoping.tdml
index 44c564abf..e69554d34 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section08/property_scoping/PropertyScoping.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section08/property_scoping/PropertyScoping.tdml
@@ -251,8 +251,8 @@
   <tdml:defineSchema name="defineFormat-Nested.dfdl.xsd">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:defineFormat name="format_a">
-      <dfdl:format ref="ex:GeneralFormat" lengthKind="explicit"
-        lengthUnits="bytes" encoding="ascii" terminator=";" length="3"
+      <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited"
+        lengthUnits="bytes" encoding="ascii" terminator=";"
         occursCountKind="parsed" ignoreCase="no" leadingSkip="0" alignment="1" alignmentUnits="bytes" trailingSkip="0"
         separatorPosition="infix" separatorSuppressionPolicy="anyEmpty" initiatedContent="no"
         textTrimKind="none"
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesDefined.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesDefined.dfdl.xsd
index ad672a885..331249b2d 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesDefined.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesDefined.dfdl.xsd
@@ -25,7 +25,7 @@
     <appinfo source="http://www.ogf.org/dfdl/">
         <dfdl:format alignment="1"
           alignmentUnits="bytes" binaryFloatRep="ieee" binaryNumberRep="binary"
-          byteOrder="bigEndian" bitOrder="mostSignificantBitFirst" encodingErrorPolicy="error"
+          byteOrder="bigEndian" bitOrder="mostSignificantBitFirst" encodingErrorPolicy="replace"
           documentFinalTerminatorCanBeMissing="no" emptyValueDelimiterPolicy="both"
           encoding="US-ASCII" escapeSchemeRef="" ignoreCase="no"
           initiatedContent="no" initiator="" leadingSkip="0" lengthKind="delimited"
@@ -43,7 +43,7 @@
           calendarPatternKind='implicit' calendarFirstDayOfWeek='Sunday'
           calendarDaysInFirstWeek='4' calendarTimeZone='UTC'
           calendarCheckPolicy='strict' calendarLanguage='en' textPadKind="none"
-          fillByte="%SP;"
+          fillByte="%SP;" floating="no" textBidi="no"
           truncateSpecifiedLengthString="yes"/> 
       </appinfo>
     </annotation>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesNotDefined.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesNotDefined.dfdl.xsd
index 5391b721d..e7986d514 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesNotDefined.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/PropertiesNotDefined.dfdl.xsd
@@ -43,7 +43,7 @@
           calendarPatternKind='implicit' calendarFirstDayOfWeek='Sunday'
           calendarDaysInFirstWeek='4' calendarTimeZone='UTC'
           calendarCheckPolicy='strict' calendarLanguage='en' textPadKind="none"
-          fillByte="%SP;"
+          fillByte="%SP;" floating="no" textBidi="no"
           truncateSpecifiedLengthString="yes"
           bitOrder="mostSignificantBitFirst"/> 
       </appinfo>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/RepProps.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/RepProps.tdml
index b3b50f6dc..46993cb63 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/RepProps.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/RepProps.tdml
@@ -32,13 +32,14 @@
       calendarLanguage="en" calendarPatternKind="implicit"
       calendarTimeZone="UTC" decimalSigned="yes"
       documentFinalTerminatorCanBeMissing="no"
-      emptyValueDelimiterPolicy="both" encodingErrorPolicy="error"
+      emptyValueDelimiterPolicy="both" encodingErrorPolicy="replace"
       encoding="utf-8" escapeSchemeRef="" fillByte="%#r20;" ignoreCase="no"
+      floating="no"
       initiatedContent="no" initiator="" leadingSkip="0" lengthKind="delimited"
       lengthUnits="bytes" occursCountKind="parsed" outputNewLine="%LF;"
       separator="" separatorPosition="infix"
       separatorSuppressionPolicy="anyEmpty" sequenceKind="ordered"
-      terminator="" textBooleanPadCharacter="%SP;"
+      terminator="" textBooleanPadCharacter="%SP;" textBidi="no"
       textCalendarJustification="left" textCalendarPadCharacter="%SP;"
       textNumberCheckPolicy="lax" textNumberJustification="right"
       textNumberPadCharacter="%SP;"
@@ -73,13 +74,14 @@
       calendarLanguage="en" calendarPatternKind="implicit"
       calendarTimeZone="UTC" decimalSigned="yes"
       documentFinalTerminatorCanBeMissing="no"
-      emptyValueDelimiterPolicy="both" encodingErrorPolicy="error"
-      encoding="utf-8" escapeSchemeRef="" fillByte="%#r20;" ignoreCase="no"
+      emptyValueDelimiterPolicy="both" encodingErrorPolicy="replace"
+      encoding="utf-8" escapeSchemeRef="" fillByte="%#r20;"
+      floating="no" ignoreCase="no"
       initiatedContent="no" initiator="" leadingSkip="0" lengthKind="delimited"
       lengthUnits="bytes" occursCountKind="parsed" outputNewLine="%LF;"
       separator="" separatorPosition="infix"
       separatorSuppressionPolicy="anyEmpty" sequenceKind="ordered"
-      terminator="" textBooleanPadCharacter="%SP;"
+      terminator="" textBooleanPadCharacter="%SP;" textBidi="no"
       textCalendarJustification="left" textCalendarPadCharacter="%SP;"
       textNumberCheckPolicy="lax" textNumberJustification="right"
       textNumberPadCharacter="%SP;"
@@ -112,13 +114,14 @@
       calendarLanguage="en" calendarPatternKind="implicit"
       calendarTimeZone="UTC" decimalSigned="yes"
       documentFinalTerminatorCanBeMissing="no"
-      emptyValueDelimiterPolicy="both" encodingErrorPolicy="error"
-      encoding="utf-8" escapeSchemeRef="" fillByte="%#r20;" ignoreCase="no"
+      emptyValueDelimiterPolicy="both" encodingErrorPolicy="replace"
+      encoding="utf-8" escapeSchemeRef="" fillByte="%#r20;"
+      floating="no" ignoreCase="no"
       initiatedContent="no" initiator="" leadingSkip="0" lengthKind="delimited"
       lengthUnits="bytes" occursCountKind="parsed" outputNewLine="%LF;"
       separator="" separatorPosition="infix"
       separatorSuppressionPolicy="anyEmpty" sequenceKind="ordered"
-      terminator="" textBooleanPadCharacter="%SP;"
+      terminator="" textBooleanPadCharacter="%SP;" textBidi="no"
       textCalendarJustification="left" textCalendarPadCharacter="%SP;"
       textNumberCheckPolicy="lax" textNumberJustification="right"
       textNumberPadCharacter="%SP;"
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/encodings.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/encodings.tdml
index ec02ea874..e79fc5e20 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/encodings.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section10/representation_properties/encodings.tdml
@@ -23,6 +23,7 @@
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
   xmlns:dfdlx="http://www.ogf.org/dfdl/dfdl-1.0/extensions"
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:ex="http://example.com"
   xmlns:tns="http://example.com"
@@ -289,6 +290,7 @@
           The decode will then fail with a parse error.
           -->
           <xs:element name="str" type="xs:string" dfdl:lengthUnits="bytes" dfdl:length="3"
+                      daf:suppressSchemaDefinitionWarnings="ignoreDFDLProperty"
             dfdl:alignment="8"/><!-- alignment will be ignored -->
         </xs:sequence>
       </xs:complexType>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section12/aligned_data/Aligned_Data.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section12/aligned_data/Aligned_Data.tdml
index b5e1a053f..119c79985 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section12/aligned_data/Aligned_Data.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section12/aligned_data/Aligned_Data.tdml
@@ -19,6 +19,7 @@
 <tdml:testSuite xmlns:tdml="http://www.ibm.com/xmlns/dfdl/testData"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
   xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ex="http://example.com"
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   defaultRoundTrip="true">
 
  
@@ -364,7 +365,8 @@
           <xs:element name="a1" type="xs:string" dfdl:terminator=":" dfdl:lengthKind="explicit" dfdl:length="5" dfdl:encoding="ascii" 
             dfdl:lengthUnits="bytes" dfdl:alignment="8" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4" dfdl:trailingSkip="2"/>
           <xs:element name="a2" type="xs:string" dfdl:initiator=":" dfdl:lengthKind="explicit" dfdl:length="5" dfdl:encoding="ascii" 
-            dfdl:lengthUnits="bytes" dfdl:alignment="8" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4"/>
+            dfdl:lengthUnits="bytes" dfdl:alignment="8" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4"
+                      daf:suppressSchemaDefinitionWarnings="alignmentAndInitiatorTextAlignmentNotCompatible"/>
         </xs:choice>
       </xs:complexType>
     </xs:element>
@@ -376,7 +378,8 @@
             <xs:complexType>
               <xs:choice>
                 <xs:element name="a1" type="xs:string" dfdl:lengthKind="explicit" dfdl:length="5" dfdl:encoding="ascii" 
-                  dfdl:lengthUnits="bytes" dfdl:alignment="4" dfdl:initiator=":" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4" dfdl:trailingSkip="2"/>
+                  dfdl:lengthUnits="bytes" dfdl:alignment="4" dfdl:initiator=":" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4" dfdl:trailingSkip="2"
+                            daf:suppressSchemaDefinitionWarnings="alignmentAndInitiatorTextAlignmentNotCompatible"/>
                 <xs:element name="a2" type="xs:string" dfdl:lengthKind="explicit" dfdl:length="5" dfdl:encoding="ascii" 
                   dfdl:lengthUnits="bytes" dfdl:alignment="8" dfdl:terminator=":" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4"/>
               </xs:choice>
@@ -393,7 +396,8 @@
             <xs:complexType>
               <xs:choice>
                 <xs:element name="a1" type="xs:string" dfdl:lengthKind="explicit" dfdl:length="5" dfdl:encoding="ascii" 
-                  dfdl:lengthUnits="bytes" dfdl:alignment="4" dfdl:initiator=":" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4" dfdl:trailingSkip="2"/>
+                  dfdl:lengthUnits="bytes" dfdl:alignment="4" dfdl:initiator=":" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4" dfdl:trailingSkip="2"
+                            daf:suppressSchemaDefinitionWarnings="alignmentAndInitiatorTextAlignmentNotCompatible"/>
                 <xs:element name="a2" type="xs:string" dfdl:lengthKind="delimited" dfdl:encoding="ascii" 
                   dfdl:alignment="8" dfdl:terminator=":" dfdl:alignmentUnits="bytes" dfdl:leadingSkip="4"/>
               </xs:choice>
@@ -438,7 +442,7 @@
             <xs:complexType>
               <xs:sequence dfdl:separator="|">
                 <xs:element name="inner" type="xs:string" dfdl:initiator="(" dfdl:terminator=")" dfdl:alignmentUnits="bytes" dfdl:alignment="4" dfdl:lengthKind="delimited" 
-                  minOccurs="2"  maxOccurs="2" dfdl:leadingSkip="2" dfdl:trailingSkip="4"/>
+                  minOccurs="2"  maxOccurs="2" dfdl:leadingSkip="2" dfdl:trailingSkip="4" daf:suppressSchemaDefinitionWarnings="alignmentAndInitiatorTextAlignmentNotCompatible"/>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section12/lengthKind/PrefixedTests.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section12/lengthKind/PrefixedTests.tdml
index f47212e05..82d201a36 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section12/lengthKind/PrefixedTests.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section12/lengthKind/PrefixedTests.tdml
@@ -457,7 +457,7 @@
       <xs:restriction base="xs:integer" /> 
     </xs:simpleType>
 
-    <xs:simpleType name="prefixExpression" dfdl:lengthKind="explicit" dfdl:length="{ fn:exists(.) }">
+    <xs:simpleType name="prefixExpression" dfdl:lengthKind="explicit" dfdl:length="{ xs:integer(fn:exists(.)) }">
       <xs:restriction base="xs:integer" /> 
     </xs:simpleType>
 
@@ -2479,7 +2479,6 @@
         <xs:sequence>
           <xs:element name="s" type="xs:string"
                       dfdl:lengthKind="delimited"
-                      dfdl:lengthUnits="characters"
                       dfdl:encoding="utf-16be"/>
           <xs:element name="e" type="xs:int" dfdl:inputValueCalc='{ dfdl:contentLength(.., "bytes") }'>
           </xs:element>
@@ -2495,7 +2494,6 @@
         <xs:sequence>
           <xs:element name="s" type="xs:string"
                       dfdl:lengthKind="delimited"
-                      dfdl:lengthUnits="characters"
                       dfdl:encoding="utf-8"/>
           <xs:element name="e" type="xs:int" dfdl:inputValueCalc='{ dfdl:contentLength(.., "bytes") }'>
           </xs:element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section13/boolean/boolean.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section13/boolean/boolean.tdml
index 02b0b82dd..1e93d42f2 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section13/boolean/boolean.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section13/boolean/boolean.tdml
@@ -21,6 +21,7 @@
   xmlns:fn="http://www.w3.org/2005/xpath-functions"
   xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" 
   xmlns:tdml="http://www.ibm.com/xmlns/dfdl/testData"
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   xmlns:ex="http://example.com"
   xmlns:tns="http://example.com"
   defaultRoundTrip="onePass">
@@ -34,10 +35,14 @@
           <xs:element name="record" maxOccurs="unbounded">
             <xs:complexType>
                 <xs:sequence dfdl:separator=','>
-                  <xs:element name="default1" type="xs:boolean" default="true" dfdl:textBooleanTrueRep="true" dfdl:textBooleanFalseRep="false" />
-                  <xs:element name="default2" type="xs:boolean" default="false" dfdl:textBooleanTrueRep="true" dfdl:textBooleanFalseRep="false" />
-                  <xs:element name="default3" type="xs:boolean" default="1" dfdl:textBooleanTrueRep="1" dfdl:textBooleanFalseRep="0" />
-                  <xs:element name="default4" type="xs:boolean" default="0" dfdl:textBooleanTrueRep="1" dfdl:textBooleanFalseRep="0" />
+                  <xs:element name="default1" type="xs:boolean" default="true" dfdl:textBooleanTrueRep="true" dfdl:textBooleanFalseRep="false"
+                              daf:suppressSchemaDefinitionWarnings="noEmptyDefault"/>
+                  <xs:element name="default2" type="xs:boolean" default="false" dfdl:textBooleanTrueRep="true" dfdl:textBooleanFalseRep="false"
+                              daf:suppressSchemaDefinitionWarnings="noEmptyDefault"/>
+                  <xs:element name="default3" type="xs:boolean" default="1" dfdl:textBooleanTrueRep="1" dfdl:textBooleanFalseRep="0"
+                              daf:suppressSchemaDefinitionWarnings="noEmptyDefault"/>
+                  <xs:element name="default4" type="xs:boolean" default="0" dfdl:textBooleanTrueRep="1" dfdl:textBooleanFalseRep="0"
+                              daf:suppressSchemaDefinitionWarnings="noEmptyDefault"/>
                 </xs:sequence>
             </xs:complexType>
           </xs:element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section13/nillable/nillable.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section13/nillable/nillable.tdml
index 520a7d44d..da41170d1 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section13/nillable/nillable.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section13/nillable/nillable.tdml
@@ -317,10 +317,10 @@
   </tdml:parserTestCase>
 
   <tdml:defineSchema name="s2">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd" />
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd" />
     
     <dfdl:format ref="ex:GeneralFormat" 
-    lengthKind="delimited" 
+    lengthKind="delimited"
     useNilForDefault="no"/>
     
     <xs:element dfdl:terminator="%NL;" name="r">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section13/text_number_props/TextNumberProps.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section13/text_number_props/TextNumberProps.tdml
index 8c55ef2fc..6c3f7d822 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section13/text_number_props/TextNumberProps.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section13/text_number_props/TextNumberProps.tdml
@@ -23,7 +23,8 @@
   xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:ex="http://example.com"
-  xmlns="http://example.com" 
+  xmlns="http://example.com"
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   xmlns:tns="http://example.com" 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   defaultRoundTrip="true">
@@ -32,7 +33,8 @@
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" occursCountKind="implicit"/>
 
-    <xs:element name="tnp01" type="xs:int" dfdl:textNumberRep="standard" dfdl:textStandardBase="16" dfdl:textNumberPattern="0000" />
+    <xs:element name="tnp01" type="xs:int" dfdl:textNumberRep="standard" dfdl:textStandardBase="16" dfdl:textNumberPattern="0000"
+                daf:suppressSchemaDefinitionWarnings="ignoreDFDLProperty"/>
     <xs:element name="tnp02" type="xs:int" dfdl:textNumberRep="standard" dfdl:textNumberPattern=";0000" />
     <xs:element name="tnp03" type="xs:int" dfdl:textNumberRep="standard" dfdl:textNumberPattern="0000;" />
 
@@ -346,7 +348,7 @@
       calendarLanguage="en" calendarPatternKind="implicit"
       calendarTimeZone="UTC" decimalSigned="yes"
       documentFinalTerminatorCanBeMissing="no" emptyValueDelimiterPolicy="both"
-      encodingErrorPolicy="error" encoding="US-ASCII" escapeSchemeRef=""
+      encodingErrorPolicy="replace" encoding="US-ASCII" escapeSchemeRef=""
       fillByte="f" floating="no" ignoreCase="no" initiatedContent="no"
       initiator="" leadingSkip="0" lengthKind="delimited" lengthUnits="bytes"
       nilValueDelimiterPolicy="both" occursCountKind="implicit"
@@ -3577,7 +3579,8 @@
       calendarLanguage="en" calendarPatternKind="implicit"
       calendarTimeZone="UTC" decimalSigned="yes"
       documentFinalTerminatorCanBeMissing="no" emptyValueDelimiterPolicy="both"
-      encodingErrorPolicy="error" encoding="US-ASCII" escapeSchemeRef=""
+      encodingErrorPolicy="replace" encoding="US-ASCII" escapeSchemeRef=""
+      floating="no" textBidi="no"
       fillByte="%#r20;" ignoreCase="no" initiatedContent="no" initiator=""
       leadingSkip="0" lengthKind="implicit" lengthUnits="bytes"
       occursCountKind="parsed" outputNewLine="%LF;" representation="text"
@@ -3608,7 +3611,8 @@
       calendarLanguage="en" calendarPatternKind="implicit"
       calendarTimeZone="UTC" decimalSigned="yes"
       documentFinalTerminatorCanBeMissing="no" emptyValueDelimiterPolicy="both"
-      encodingErrorPolicy="error" encoding="US-ASCII" escapeSchemeRef=""
+      encodingErrorPolicy="replace" encoding="US-ASCII" escapeSchemeRef=""
+      floating="no" textBidi="no"
       fillByte="%#r20;" ignoreCase="no" initiatedContent="no" initiator=""
       leadingSkip="0" lengthKind="implicit" lengthUnits="bytes"
       occursCountKind="parsed" outputNewLine="%LF;" representation="text"
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml
index b4b8d7552..55bdb9448 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml
@@ -19,50 +19,50 @@
 <tdml:testSuite xmlns:tdml="http://www.ibm.com/xmlns/dfdl/testData"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
   xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ex="http://example.com"
-  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"  
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   xmlns:fn="http://www.w3.org/2005/xpath-functions"
   defaultRoundTrip="true">
 
-   <tdml:defineSchema name="emptySDEschema">
-     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
-     <dfdl:format ref="ex:GeneralFormat"/>
-
-     <xs:element name="emptySeq" type="ex:complexEmptySeq"/>
-     
-     <xs:complexType name="complexEmptySeq">
-       <xs:sequence/>
-     </xs:complexType>
-  
-     <xs:element name="complexEmptyContent" type="ex:complex"/>
-     
-     <xs:complexType name="complex">
-       <xs:sequence>
-         <xs:sequence dfdl:separator=","/>
-       </xs:sequence>
-     </xs:complexType>
-     
-     <xs:element name="noContentComplex">
-       <xs:complexType>
-       </xs:complexType>
-     </xs:element>
-     
-     <xs:element name="noContentAnnotatedComplex">
-       <xs:complexType>
-       <xs:annotation><xs:documentation>not really doc
-       </xs:documentation></xs:annotation>
-       </xs:complexType>
-     </xs:element>
-
-   </tdml:defineSchema>
-   
+  <tdml:defineSchema name="emptySDEschema">
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
+    <dfdl:format ref="ex:GeneralFormat"/>
+
+    <xs:element name="emptySeq" type="ex:complexEmptySeq"/>
+
+    <xs:complexType name="complexEmptySeq">
+      <xs:sequence/>
+    </xs:complexType>
+
+    <xs:element name="complexEmptyContent" type="ex:complex"/>
+
+    <xs:complexType name="complex">
+      <xs:sequence>
+        <xs:sequence dfdl:separator=","/>
+      </xs:sequence>
+    </xs:complexType>
+
+    <xs:element name="noContentComplex">
+      <xs:complexType>
+      </xs:complexType>
+    </xs:element>
+
+    <xs:element name="noContentAnnotatedComplex">
+      <xs:complexType>
+        <xs:annotation><xs:documentation>not really doc
+        </xs:documentation></xs:annotation>
+      </xs:complexType>
+    </xs:element>
+
+  </tdml:defineSchema>
+
   <!--
     Test name: complexEmptyContent
        Schema: emptySDEschema
       Purpose: This test demonstrates that DFDL allows complexTypes with empty content (not to be confused with NO content)
   -->
-  
+
   <tdml:parserTestCase name="complexEmptyContent" root="complexEmptyContent"
-    model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
+                       model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
     <tdml:document>
       <tdml:documentPart type="text"></tdml:documentPart>
     </tdml:document>
@@ -73,15 +73,15 @@
     </tdml:infoset>
 
   </tdml:parserTestCase>
-  
+
   <!--
     Test name: noContentComplexSDE
        Schema: emptySDEschema
       Purpose: This test demonstrates that having a complexType with NO content results in an SDE
   -->
-  
+
   <tdml:parserTestCase name="noContentComplexSDE" root="noContentComplex"
-    model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
+                       model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
     <tdml:document>
       <tdml:documentPart type="text"></tdml:documentPart>
     </tdml:document>
@@ -90,9 +90,9 @@
       <tdml:error>A complex type must have exactly one model-group element child which is a sequence, choice, or group reference.</tdml:error>
     </tdml:errors>
   </tdml:parserTestCase>
-  
-    <tdml:parserTestCase name="noContentAnnotatedComplexSDE" root="noContentAnnotatedComplex"
-    model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
+
+  <tdml:parserTestCase name="noContentAnnotatedComplexSDE" root="noContentAnnotatedComplex"
+                       model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
     <tdml:document>
       <tdml:documentPart type="text"></tdml:documentPart>
     </tdml:document>
@@ -100,15 +100,15 @@
       <tdml:error/>
     </tdml:errors>
   </tdml:parserTestCase>
-   
+
   <!--
     Test name: emptySequenceSDE
        Schema: emptySDEschema
       Purpose: This test demonstrates that it is a schema definition error if an empty sequence is the content of a complex type
   -->
-  
+
   <tdml:parserTestCase name="emptySequenceSDE" root="emptySeq"
-    model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
+                       model="emptySDEschema" description="Section 14 - DFDL-14-007R.">
     <tdml:document>
       <tdml:documentPart type="text"></tdml:documentPart>
     </tdml:document>
@@ -125,13 +125,13 @@
         <xs:sequence dfdl:separator=",">
           <xs:element name="count" type="xs:int" dfdl:lengthKind="explicit" dfdl:length="1" />
           <xs:element name="record" dfdl:lengthKind="explicit" dfdl:length="0" maxOccurs="unbounded"
-            dfdl:occursCountKind="expression" dfdl:occursCount="{ ../ex:count }">
+                      dfdl:occursCountKind="expression" dfdl:occursCount="{ ../ex:count }">
             <xs:complexType>
               <xs:sequence>
-              <!--
-                <xs:element name="value1" dfdl:lengthKind="explicit" dfdl:length="1" type="xs:string" />
-                <xs:element name="value2" dfdl:lengthKind="explicit" dfdl:length="1" type="xs:string" />
-              -->
+                <!--
+                  <xs:element name="value1" dfdl:lengthKind="explicit" dfdl:length="1" type="xs:string" />
+                  <xs:element name="value2" dfdl:lengthKind="explicit" dfdl:length="1" type="xs:string" />
+                -->
               </xs:sequence>
             </xs:complexType>
           </xs:element>
@@ -141,8 +141,8 @@
   </tdml:defineSchema>
 
   <tdml:parserTestCase name="nadaParser" root="test"
-    model="NadaParser.dfdl.xsd" description="Tests to make sure that the NadaParser generated in SpecifiedLengthExplicit is optimized out"
-    roundTrip="false">
+                       model="NadaParser.dfdl.xsd" description="Tests to make sure that the NadaParser generated in SpecifiedLengthExplicit is optimized out"
+                       roundTrip="false">
     <tdml:document>
       <tdml:documentPart type="text">1,</tdml:documentPart>
     </tdml:document>
@@ -156,72 +156,72 @@
     </tdml:infoset>
   </tdml:parserTestCase>
 
-   <tdml:defineSchema name="SequenceGroup-Embedded.dfdl.xsd">
-     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
-     <dfdl:format ref="ex:GeneralFormat" lengthUnits="bytes"
-       lengthKind="implicit" />
-     <xs:element name="SG_05">
-       <xs:complexType>
-         <xs:sequence>
-           <xs:element name="e1" type="xs:int"
-             dfdl:lengthKind="explicit" dfdl:length="3" />
-           <xs:element name="e2" type="xs:float"
-             dfdl:lengthKind="explicit" dfdl:length="5" />
-           <xs:element name="e3" type="xs:long"
-             dfdl:lengthKind="explicit" dfdl:length="4" />
-           <xs:element name="leftover" type="xs:string"
-             dfdl:lengthKind="delimited" />
-         </xs:sequence>
-       </xs:complexType>
-     </xs:element>
-   </tdml:defineSchema>
-   
+  <tdml:defineSchema name="SequenceGroup-Embedded.dfdl.xsd">
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
+    <dfdl:format ref="ex:GeneralFormat" lengthUnits="bytes"
+                 lengthKind="implicit" />
+    <xs:element name="SG_05">
+      <xs:complexType>
+        <xs:sequence>
+          <xs:element name="e1" type="xs:int"
+                      dfdl:lengthKind="explicit" dfdl:length="3" />
+          <xs:element name="e2" type="xs:float"
+                      dfdl:lengthKind="explicit" dfdl:length="5" />
+          <xs:element name="e3" type="xs:long"
+                      dfdl:lengthKind="explicit" dfdl:length="4" />
+          <xs:element name="leftover" type="xs:string"
+                      dfdl:lengthKind="delimited" />
+        </xs:sequence>
+      </xs:complexType>
+    </xs:element>
+  </tdml:defineSchema>
+
   <tdml:defineSchema name="SequenceGroup546">
-     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
-     <dfdl:format ref="ex:GeneralFormat" lengthUnits="bytes"
-       lengthKind="implicit" />
-     <xs:element name="SG_05">
-       <xs:complexType>
-         <xs:sequence>
-           <xs:element name="e1" type="xs:int"
-             dfdl:lengthKind="explicit" dfdl:length="3" />
-             <!-- Let's leave off the name attribute of the next element -->
-           <xs:element  type="xs:float"
-             dfdl:lengthKind="explicit" dfdl:length="5" />
-           <xs:element name="e3" type="xs:long"
-             dfdl:lengthKind="explicit" dfdl:length="4" />
-         </xs:sequence>
-       </xs:complexType>
-     </xs:element>
-   </tdml:defineSchema>
-   
-    <tdml:parserTestCase name="SeqGrp546"
-     model="SequenceGroup546" description="Section 14 Sequence group with left over data - DFDL-14-001R"
-     root="SG_05">
-     <tdml:document><![CDATA[123123451234]]></tdml:document>
-      <tdml:errors>
-        <tdml:error>Schema Definition Error</tdml:error>
-        <tdml:error>'name'</tdml:error>
-        <tdml:error>element</tdml:error>
-      </tdml:errors>
-   </tdml:parserTestCase>
- 
-   <tdml:parserTestCase name="SeqGrp_05"
-     model="SequenceGroup-Embedded.dfdl.xsd" description="Section 14 Sequence group with left over data - DFDL-14-001R"
-     root="SG_05">
-     <tdml:document><![CDATA[837742.8-1197108]]></tdml:document>
-     <tdml:infoset>
-       <tdml:dfdlInfoset>
-         <SG_05>
-           <e1>837</e1>
-           <e2>742.8</e2>
-           <e3>-119</e3>
-           <leftover>7108</leftover>
-         </SG_05>
-       </tdml:dfdlInfoset>
-     </tdml:infoset>
-   </tdml:parserTestCase>
- 
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
+    <dfdl:format ref="ex:GeneralFormat" lengthUnits="bytes"
+                 lengthKind="implicit" />
+    <xs:element name="SG_05">
+      <xs:complexType>
+        <xs:sequence>
+          <xs:element name="e1" type="xs:int"
+                      dfdl:lengthKind="explicit" dfdl:length="3" />
+          <!-- Let's leave off the name attribute of the next element -->
+          <xs:element  type="xs:float"
+                       dfdl:lengthKind="explicit" dfdl:length="5" />
+          <xs:element name="e3" type="xs:long"
+                      dfdl:lengthKind="explicit" dfdl:length="4" />
+        </xs:sequence>
+      </xs:complexType>
+    </xs:element>
+  </tdml:defineSchema>
+
+  <tdml:parserTestCase name="SeqGrp546"
+                       model="SequenceGroup546" description="Section 14 Sequence group with left over data - DFDL-14-001R"
+                       root="SG_05">
+    <tdml:document><![CDATA[123123451234]]></tdml:document>
+    <tdml:errors>
+      <tdml:error>Schema Definition Error</tdml:error>
+      <tdml:error>'name'</tdml:error>
+      <tdml:error>element</tdml:error>
+    </tdml:errors>
+  </tdml:parserTestCase>
+
+  <tdml:parserTestCase name="SeqGrp_05"
+                       model="SequenceGroup-Embedded.dfdl.xsd" description="Section 14 Sequence group with left over data - DFDL-14-001R"
+                       root="SG_05">
+    <tdml:document><![CDATA[837742.8-1197108]]></tdml:document>
+    <tdml:infoset>
+      <tdml:dfdlInfoset>
+        <SG_05>
+          <e1>837</e1>
+          <e2>742.8</e2>
+          <e3>-119</e3>
+          <leftover>7108</leftover>
+        </SG_05>
+      </tdml:dfdlInfoset>
+    </tdml:infoset>
+  </tdml:parserTestCase>
+
   <tdml:defineSchema name="hiddenGroup1">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -241,7 +241,7 @@
   </tdml:defineSchema>
 
   <tdml:parserTestCase name="hiddenGroup1" root="e"
-    model="hiddenGroup1" description="Unit test of hidden group ref.">
+                       model="hiddenGroup1" description="Unit test of hidden group ref.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[1,2]]></tdml:documentPart>
     </tdml:document>
@@ -253,7 +253,7 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="hiddenGroup2">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -273,9 +273,9 @@
       </xs:complexType>
     </xs:element>
   </tdml:defineSchema>
-  
+
   <tdml:parserTestCase name="hiddenGroupSchemaFail" root="e"
-    model="hiddenGroup2" description="Unit test of hidden group ref.">
+                       model="hiddenGroup2" description="Unit test of hidden group ref.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[1,2]]></tdml:documentPart>
     </tdml:document>
@@ -284,7 +284,7 @@
       <tdml:error>A sequence with hiddenGroupRef cannot have children</tdml:error>
     </tdml:errors>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="hiddenGroup3">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -309,7 +309,7 @@
       </xs:complexType>
     </xs:element>
   </tdml:defineSchema>
-  
+
   <tdml:defineSchema name="hiddenGroupRefEmptyString">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -321,15 +321,15 @@
     </xs:element>
 
   </tdml:defineSchema>
-  
+
   <!--
     Test name: hiddenGroupRefEmptyString
        Schema: hiddenGroupRefEmptyString
       Purpose: This test demonstrates that hidden group references cannot be the empty string.
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupRefEmptyString" root="e"
-    model="hiddenGroupRefEmptyString" description="Section 14 - Hidden Elements DFDL-14-037R.">
+                       model="hiddenGroupRefEmptyString" description="Section 14 - Hidden Elements DFDL-14-037R.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[42,2]]></tdml:documentPart>
     </tdml:document>
@@ -361,7 +361,7 @@
   -->
 
   <tdml:parserTestCase name="hiddenGroupRefDoesNotExist" root="e"
-    model="hiddenGroupRefDoesNotExist" description="Section 14 - Hidden Elements DFDL-14-037R.">
+                       model="hiddenGroupRefDoesNotExist" description="Section 14 - Hidden Elements DFDL-14-037R.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[42,2]]></tdml:documentPart>
     </tdml:document>
@@ -377,9 +377,9 @@
        Schema: hiddenGroup3
       Purpose: This test demonstrates that hidden groups can contain regular DFDL annotations.
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupWithAssert" root="e"
-    model="hiddenGroup3" description="Section 14 - Hidden Elements DFDL-14-037R.">
+                       model="hiddenGroup3" description="Section 14 - Hidden Elements DFDL-14-037R.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[42,2]]></tdml:documentPart>
     </tdml:document>
@@ -391,15 +391,15 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <!--
     Test name: hiddenGroupWithAssert2
        Schema: hiddenGroup3
       Purpose: This test demonstrates that hidden groups can contain regular DFDL annotations.
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupWithAssert2" root="e"
-    model="hiddenGroup3" description="Section 14 - Hidden Elements DFDL-14-037R.">
+                       model="hiddenGroup3" description="Section 14 - Hidden Elements DFDL-14-037R.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[43,2]]></tdml:documentPart>
     </tdml:document>
@@ -407,7 +407,7 @@
       <tdml:error>Assertion failed</tdml:error>
     </tdml:errors>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="hiddenGroup4">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -430,7 +430,7 @@
         </xs:sequence>
       </xs:complexType>
     </xs:element>
-    
+
     <xs:group name="hgNested3">
       <xs:sequence>
         <xs:element name="sneakier" type="xs:int" dfdl:outputValueCalc="{ 6 }" />
@@ -458,15 +458,15 @@
       </xs:complexType>
     </xs:element>
   </tdml:defineSchema>
-  
+
   <!--
     Test name: hiddenGroupNested
        Schema: hiddenGroup4
       Purpose: This test demonstrates that hidden groups can contain other hidden groups
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupNested" root="e"
-    model="hiddenGroup4" description="Section 14 - Hidden Elements - DFDL-14-041R.">
+                       model="hiddenGroup4" description="Section 14 - Hidden Elements - DFDL-14-041R.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[5/42,2]]></tdml:documentPart>
     </tdml:document>
@@ -478,15 +478,15 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <!--
     Test name: hiddenGroupNested2
        Schema: hiddenGroup4
       Purpose: This test demonstrates that hidden groups can contain other hidden groups
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupNested2" root="ee"
-    model="hiddenGroup4" description="Section 14 - Hidden Elements - DFDL-14-041R.">
+                       model="hiddenGroup4" description="Section 14 - Hidden Elements - DFDL-14-041R.">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[6o5/42,2]]></tdml:documentPart>
     </tdml:document>
@@ -498,18 +498,18 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="hiddenGroupChoice">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
 
     <xs:group name="hg">
-          <xs:choice>
-            <xs:element name="inty" type="xs:int"
-              dfdl:lengthKind="delimited" dfdl:outputValueCalc="{ 145 }" />
-            <xs:element name="stringy" type="xs:string"
-              dfdl:lengthKind="delimited" />
-          </xs:choice>
+      <xs:choice>
+        <xs:element name="inty" type="xs:int"
+                    dfdl:lengthKind="delimited" dfdl:outputValueCalc="{ 145 }" />
+        <xs:element name="stringy" type="xs:string"
+                    dfdl:lengthKind="delimited" />
+      </xs:choice>
     </xs:group>
 
     <xs:element name="e" dfdl:lengthKind="delimited">
@@ -521,15 +521,15 @@
       </xs:complexType>
     </xs:element>
   </tdml:defineSchema>
-  
+
   <!--
     Test name: hiddenGroupChoice
        Schema: hiddenGroupChoice
       Purpose: This test demonstrates that hidden groups can contain a choice.
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupChoice" root="e"
-    model="hiddenGroupChoice" description="Section 14 - Hidden Groups - DFDL-14-042R">
+                       model="hiddenGroupChoice" description="Section 14 - Hidden Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[145,2]]></tdml:documentPart>
     </tdml:document>
@@ -541,7 +541,7 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <!--
     Test name: hiddenGroupChoice2
        Schema: hiddenGroupChoice
@@ -549,8 +549,8 @@
   -->
 
   <tdml:parserTestCase name="hiddenGroupChoice2" root="e"
-    model="hiddenGroupChoice" description="Section 14 - Hidden Groups - DFDL-14-042R"
-    roundTrip="twoPass">
+                       model="hiddenGroupChoice" description="Section 14 - Hidden Groups - DFDL-14-042R"
+                       roundTrip="twoPass">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[stringy,2]]></tdml:documentPart>
     </tdml:document>
@@ -562,7 +562,7 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="hiddenGroupLoop">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -586,30 +586,30 @@
         </xs:sequence>
       </xs:complexType>
     </xs:element>
- </tdml:defineSchema>
+  </tdml:defineSchema>
 
   <!--
     Test name: hiddenGroupLoop
        Schema: hiddenGroupLoop
       Purpose: This test demonstrates a circular reference with hidden group refs and should cause a Schema Definition Error
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupLoop" root="e"
-    model="hiddenGroupLoop" description="Section 14 - Hidden Groups - DFDL-14-042R">
+                       model="hiddenGroupLoop" description="Section 14 - Hidden Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[stringy,2]]></tdml:documentPart>
     </tdml:document>
-    <tdml:errors> 
-      <tdml:error>Schema Definition Error</tdml:error> 
+    <tdml:errors>
+      <tdml:error>Schema Definition Error</tdml:error>
       <tdml:error>circular</tdml:error>
-    </tdml:errors> 
- </tdml:parserTestCase>
+    </tdml:errors>
+  </tdml:parserTestCase>
 
   <tdml:parserTestCase name="AS000" root="table" model="AS-Embedded"
-    description="hiddenGroupRef">
+                       description="hiddenGroupRef">
     <tdml:document>
-	  <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[Creator: NCSA%LF;Date: Mon Feb 23 15:20:47 CST 2009%LF;0,1,2,3,4,5,6,7,8,9%LF;1,2,3,4,5,6,7,8,9,10%LF;2,3,4,5,6,7,8,9,10,11%LF;3,4,5,6,7,8,9,10,11,12%LF;4,5,6,7,8,9,10,11,12,13%LF;5,6,7,8,9,10,11,12,13,14%LF;6,7,8,9,10,11,12,13,14,15%LF;7,8,9,10,11,12,13,14,15,16%LF;8,9,10,11,12,13,14,15,16,17%LF;9,10,11,12,13,14,15,16,17,18%LF;]]></tdml:documentPart>
-	</tdml:document>
+      <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[Creator: NCSA%LF;Date: Mon Feb 23 15:20:47 CST 2009%LF;0,1,2,3,4,5,6,7,8,9%LF;1,2,3,4,5,6,7,8,9,10%LF;2,3,4,5,6,7,8,9,10,11%LF;3,4,5,6,7,8,9,10,11,12%LF;4,5,6,7,8,9,10,11,12,13%LF;5,6,7,8,9,10,11,12,13,14%LF;6,7,8,9,10,11,12,13,14,15%LF;7,8,9,10,11,12,13,14,15,16%LF;8,9,10,11,12,13,14,15,16,17%LF;9,10,11,12,13,14,15,16,17,18%LF;]]></tdml:documentPart>
+    </tdml:document>
     <tdml:infoset>
       <tdml:dfdlInfoset>
         <table>
@@ -739,64 +739,64 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="AS-Embedded">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat"
-          lengthKind="delimited" separator=""
-          leadingSkip='0' encoding="US-ASCII" ignoreCase='no' initiator=""
-          terminator="" initiatedContent="no" textNumberRep="standard"
-          separatorSuppressionPolicy="trailingEmpty" separatorPosition="infix"
-          documentFinalTerminatorCanBeMissing='yes' textTrimKind="none"/>
-
-  <!-- CSV with metadata header, remove header -->
-
-  <xs:element name="matrix" type="ex:matrixType" />
-  <xs:element name="table" type="ex:SimpleTable" />
-
-  <xs:group name="hdrGroup">
-    <xs:sequence>
-      <xs:element name="hdrblock" type="ex:header" />
-    </xs:sequence>
-  </xs:group>
-
-  <xs:complexType name="SimpleTable">
-    <xs:sequence>
-      <xs:sequence dfdl:hiddenGroupRef="ex:hdrGroup" />
-      <xs:element name="matrix" type="ex:matrixType" />
-    </xs:sequence>
-  </xs:complexType>
-
-  <xs:complexType name="header">
-    <xs:sequence>
-      <xs:element name="Creator" type="xs:string" dfdl:terminator="%NL;"
-        dfdl:initiator="Creator:" dfdl:encoding="ASCII"
-        dfdl:lengthKind="delimited"
-        dfdl:outputValueCalc="{ ' NCSA' }" />
-      <xs:element name="Date" type="xs:string" dfdl:terminator="%NL;"
-        dfdl:initiator="Date:" dfdl:encoding="ASCII"
-        dfdl:outputValueCalc="{ ' Mon Feb 23 15:20:47 CST 2009' }" />
-    </xs:sequence>
-  </xs:complexType>
-
-  <xs:complexType name="matrixType">
-    <xs:sequence>
-      <xs:element name="row" maxOccurs="unbounded" dfdl:occursCountKind='parsed'>
-        <xs:complexType>
-          <xs:sequence dfdl:separator="," dfdl:terminator="%NL;"
-            dfdl:separatorSuppressionPolicy="anyEmpty" dfdl:separatorPosition="infix">
-            <xs:element name="cell" type="xs:int" maxOccurs="unbounded"
-              dfdl:occursCountKind='parsed'
-              dfdl:encoding="ASCII" dfdl:representation="text"
-              dfdl:lengthKind="delimited" />
-          </xs:sequence>
-        </xs:complexType>
-      </xs:element>
-    </xs:sequence>
-  </xs:complexType>
+                 lengthKind="delimited" separator=""
+                 leadingSkip='0' encoding="US-ASCII" ignoreCase='no' initiator=""
+                 terminator="" initiatedContent="no" textNumberRep="standard"
+                 separatorSuppressionPolicy="trailingEmpty" separatorPosition="infix"
+                 documentFinalTerminatorCanBeMissing='yes' textTrimKind="none"/>
+
+    <!-- CSV with metadata header, remove header -->
+
+    <xs:element name="matrix" type="ex:matrixType" />
+    <xs:element name="table" type="ex:SimpleTable" />
+
+    <xs:group name="hdrGroup">
+      <xs:sequence>
+        <xs:element name="hdrblock" type="ex:header" />
+      </xs:sequence>
+    </xs:group>
+
+    <xs:complexType name="SimpleTable">
+      <xs:sequence>
+        <xs:sequence dfdl:hiddenGroupRef="ex:hdrGroup" />
+        <xs:element name="matrix" type="ex:matrixType" />
+      </xs:sequence>
+    </xs:complexType>
+
+    <xs:complexType name="header">
+      <xs:sequence>
+        <xs:element name="Creator" type="xs:string" dfdl:terminator="%NL;"
+                    dfdl:initiator="Creator:" dfdl:encoding="ASCII"
+                    dfdl:lengthKind="delimited"
+                    dfdl:outputValueCalc="{ ' NCSA' }" />
+        <xs:element name="Date" type="xs:string" dfdl:terminator="%NL;"
+                    dfdl:initiator="Date:" dfdl:encoding="ASCII"
+                    dfdl:outputValueCalc="{ ' Mon Feb 23 15:20:47 CST 2009' }" />
+      </xs:sequence>
+    </xs:complexType>
+
+    <xs:complexType name="matrixType">
+      <xs:sequence>
+        <xs:element name="row" maxOccurs="unbounded" dfdl:occursCountKind='parsed'>
+          <xs:complexType>
+            <xs:sequence dfdl:separator="," dfdl:terminator="%NL;"
+                         dfdl:separatorSuppressionPolicy="anyEmpty" dfdl:separatorPosition="infix">
+              <xs:element name="cell" type="xs:int" maxOccurs="unbounded"
+                          dfdl:occursCountKind='parsed'
+                          dfdl:encoding="ASCII" dfdl:representation="text"
+                          dfdl:lengthKind="delimited" />
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+      </xs:sequence>
+    </xs:complexType>
 
   </tdml:defineSchema>
-  
+
   <tdml:defineSchema name="hiddenGroup5">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -815,7 +815,7 @@
       </xs:complexType>
     </xs:element>
   </tdml:defineSchema>
-  
+
   <tdml:defineSchema name="hiddenGroup6">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -827,17 +827,17 @@
     </xs:group>
     <xs:element name="e" dfdl:lengthKind="delimited">
       <xs:complexType>
-          <xs:sequence>
-            <xs:annotation>
-              <xs:appinfo source="http://www.ogf.org/dfdl/">
-                <dfdl:sequence hiddenGroupRef="ex:ab"/>
-              </xs:appinfo>
-            </xs:annotation>
-          </xs:sequence>
+        <xs:sequence>
+          <xs:annotation>
+            <xs:appinfo source="http://www.ogf.org/dfdl/">
+              <dfdl:sequence hiddenGroupRef="ex:ab"/>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:sequence>
       </xs:complexType>
     </xs:element>
   </tdml:defineSchema>
-  
+
   <tdml:defineSchema name="hiddenGroup7">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
@@ -849,27 +849,27 @@
     </xs:group>
     <xs:element name="e" dfdl:lengthKind="delimited">
       <xs:complexType>
-          <xs:sequence>
-            <xs:annotation>
-              <xs:appinfo source="http://www.ogf.org/dfdl/">
-                <dfdl:sequence>
-                  <dfdl:property name="hiddenGroupRef">ex:ab</dfdl:property>
-                </dfdl:sequence>
-              </xs:appinfo>
-            </xs:annotation>
-          </xs:sequence>
+        <xs:sequence>
+          <xs:annotation>
+            <xs:appinfo source="http://www.ogf.org/dfdl/">
+              <dfdl:sequence>
+                <dfdl:property name="hiddenGroupRef">ex:ab</dfdl:property>
+              </dfdl:sequence>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:sequence>
       </xs:complexType>
     </xs:element>
   </tdml:defineSchema>
-  
+
   <!--
     Test name: hiddenGroupIgnoredProps
        Schema: hiddenGroup5
       Purpose: This test demonstrates that when the dfdl:hiddenGroupRef property is specified, all other DFDL properties are ignored.
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupIgnoredProps" root="e"
-    model="hiddenGroup5" description="Section 14 - When the dfdl:hiddenGroupRef property is specified, all other DFDL properties are ignored. - DFDL-14-039R">
+                       model="hiddenGroup5" description="Section 14 - When the dfdl:hiddenGroupRef property is specified, all other DFDL properties are ignored. - DFDL-14-039R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[1:2,3]]></tdml:documentPart>
     </tdml:document>
@@ -879,15 +879,15 @@
       <tdml:error>Unable to parse</tdml:error>
     </tdml:errors>
   </tdml:parserTestCase>
-  
+
   <!--
     Test name: hiddenGroupAttributeNotation
        Schema: hiddenGroup6
       Purpose: This test demonstrates that a hiddenGroupRef cannot be specified in attribute form within an annotation
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupAttributeNotation" root="e"
-    model="hiddenGroup6" description="SEE ERRATA 3.1 - attribute form no longer allowed for hiddenGroupRef (Previous req DFDL-7-018R)">
+                       model="hiddenGroup6" description="SEE ERRATA 3.1 - attribute form no longer allowed for hiddenGroupRef (Previous req DFDL-7-018R)">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[1:2]]></tdml:documentPart>
     </tdml:document>
@@ -896,15 +896,15 @@
       <tdml:error>A sequence with hiddenGroupRef cannot have children</tdml:error>
     </tdml:errors>
   </tdml:parserTestCase>
-  
+
   <!--
     Test name: hiddenGroupElementNotation
        Schema: hiddenGroup7
       Purpose: This test demonstrates that a hiddenGroupRef cannot be specified in element form within an annotation
   -->
-  
+
   <tdml:parserTestCase name="hiddenGroupElementNotation" root="e"
-    model="hiddenGroup7" description="Section 7 - The hiddenGroupRef property may be specified in attribute or short form DFDL-7-018R">
+                       model="hiddenGroup7" description="Section 7 - The hiddenGroupRef property may be specified in attribute or short form DFDL-7-018R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[1:2]]></tdml:documentPart>
     </tdml:document>
@@ -913,61 +913,61 @@
       <tdml:error>A sequence with hiddenGroupRef cannot have children</tdml:error>
     </tdml:errors>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="AD-Embedded">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
-    <dfdl:format ref="ex:GeneralFormat" 
-        lengthKind="delimited" separator=""
-        leadingSkip='0' encoding="US-ASCII" ignoreCase='no' initiator=""
-        terminator="" initiatedContent="no" textNumberRep="standard"
-        separatorSuppressionPolicy="anyEmpty" separatorPosition="infix"
-        occursCountKind="parsed" textTrimKind="none"/>
-
-  <!-- Evaluated occursCount based on hidden elements -->
-
-  <xs:group name="xCountGroup">
-    <xs:sequence>
-      <xs:element name="xCount" type="xs:int" dfdl:representation="text"
-        dfdl:outputValueCalc="{ fn:count(../ex:x) }" />
-    </xs:sequence>
-  </xs:group>
-
-  <xs:group name="yCountGroup">
-    <xs:sequence>
-      <xs:element name="yCount" type="xs:int" dfdl:representation="text"
-        dfdl:outputValueCalc="{ fn:count(../ex:y) }" />
-    </xs:sequence>
-  </xs:group>
-
-  <xs:element name="list">
-    <xs:complexType>
+    <dfdl:format ref="ex:GeneralFormat"
+                 lengthKind="delimited" separator=""
+                 leadingSkip='0' encoding="US-ASCII" ignoreCase='no' initiator=""
+                 terminator="" initiatedContent="no" textNumberRep="standard"
+                 separatorSuppressionPolicy="anyEmpty" separatorPosition="infix"
+                 occursCountKind="parsed" textTrimKind="none"/>
+
+    <!-- Evaluated occursCount based on hidden elements -->
+
+    <xs:group name="xCountGroup">
       <xs:sequence>
-        <xs:sequence dfdl:separator="%NL;" dfdl:separatorPosition="postfix">
-          <xs:sequence dfdl:hiddenGroupRef="ex:xCountGroup" />
-          <xs:element name="x" type="xs:string" maxOccurs="unbounded"
-            dfdl:occursCountKind="expression" dfdl:occursCount="{ ../ex:xCount }" />
-          <xs:sequence dfdl:hiddenGroupRef="ex:yCountGroup" />
-          <xs:element name="y" type="xs:string" maxOccurs="unbounded"
-            dfdl:occursCountKind="expression" dfdl:occursCount="{ ../ex:yCount }" />
-        </xs:sequence>
-        <xs:sequence dfdl:hiddenGroupRef="ex:leftOver" />
+        <xs:element name="xCount" type="xs:int" dfdl:representation="text"
+                    dfdl:outputValueCalc="{ fn:count(../ex:x) }" />
       </xs:sequence>
-    </xs:complexType>
-  </xs:element>
+    </xs:group>
+
+    <xs:group name="yCountGroup">
+      <xs:sequence>
+        <xs:element name="yCount" type="xs:int" dfdl:representation="text"
+                    dfdl:outputValueCalc="{ fn:count(../ex:y) }" />
+      </xs:sequence>
+    </xs:group>
+
+    <xs:element name="list">
+      <xs:complexType>
+        <xs:sequence>
+          <xs:sequence dfdl:separator="%NL;" dfdl:separatorPosition="postfix">
+            <xs:sequence dfdl:hiddenGroupRef="ex:xCountGroup" />
+            <xs:element name="x" type="xs:string" maxOccurs="unbounded"
+                        dfdl:occursCountKind="expression" dfdl:occursCount="{ ../ex:xCount }" />
+            <xs:sequence dfdl:hiddenGroupRef="ex:yCountGroup" />
+            <xs:element name="y" type="xs:string" maxOccurs="unbounded"
+                        dfdl:occursCountKind="expression" dfdl:occursCount="{ ../ex:yCount }" />
+          </xs:sequence>
+          <xs:sequence dfdl:hiddenGroupRef="ex:leftOver" />
+        </xs:sequence>
+      </xs:complexType>
+    </xs:element>
 
-  <xs:group name="leftOver">
-    <xs:sequence>
-      <xs:element name="leftOver" type="xs:string" dfdl:outputValueCalc="{ '' }" />
-    </xs:sequence>
-  </xs:group>
+    <xs:group name="leftOver">
+      <xs:sequence>
+        <xs:element name="leftOver" type="xs:string" dfdl:outputValueCalc="{ '' }" />
+      </xs:sequence>
+    </xs:group>
   </tdml:defineSchema>
-  
+
   <tdml:parserTestCase name="AD000" root="list" model="AD-Embedded"
-    description="occursCount with expressions"
-    roundTrip="twoPass">
+                       description="occursCount with expressions"
+                       roundTrip="twoPass">
     <tdml:document>
-	  <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[3%LF;first x%LF;second x%LF;third x%LF;5%LF;first y%LF;second y%LF;third y%LF;fourth y%LF;fifth y%LF;ignored input%LF;more ignored input%LF;]]></tdml:documentPart>
-	</tdml:document>
+      <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[3%LF;first x%LF;second x%LF;third x%LF;5%LF;first y%LF;second y%LF;third y%LF;fourth y%LF;fifth y%LF;ignored input%LF;more ignored input%LF;]]></tdml:documentPart>
+    </tdml:document>
     <tdml:infoset>
       <tdml:dfdlInfoset>
         <list>
@@ -983,55 +983,55 @@
       </tdml:dfdlInfoset>
     </tdml:infoset>
   </tdml:parserTestCase>
-  
+
   <tdml:defineSchema name="AC-Embedded">
     <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat"
-        lengthKind="delimited" separator=""
-        leadingSkip='0' encoding="US-ASCII" ignoreCase='no' initiator=""
-        terminator="" initiatedContent="no" textNumberRep="standard"
-        separatorSuppressionPolicy="anyEmpty" separatorPosition="infix"
-        occursCountKind="parsed" textTrimKind="none"/>
-
-  <!-- Parsing values as a hidden layer, then
-    creating elements by evaluating XPath expressions on the layer -->
-
-  <xs:group name="data">
-    <xs:sequence dfdl:separator="">
-      <xs:element name="_x" type="xs:int" dfdl:representation="text"
-        dfdl:terminator="%NL;" dfdl:outputValueCalc="{ xs:int(../ex:x) }" />
-      <xs:element name="_y" type="xs:int" dfdl:representation="text"
-        dfdl:terminator="%NL;" dfdl:outputValueCalc="{ xs:int(../ex:y) }" />
-      <xs:element name="_z" type="xs:int" dfdl:representation="text"
-        dfdl:terminator="%NL;" dfdl:outputValueCalc="{ xs:int(../ex:z) }" />
-    </xs:sequence>
-  </xs:group>
-
-  <xs:element name="table">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:sequence dfdl:hiddenGroupRef="ex:data" />
-        <xs:element name="product" type="xs:int"
-          dfdl:inputValueCalc="{ /ex:table/ex:_x * /ex:table/ex:_y * /ex:table/ex:_z }" />
-        <xs:element name="sum" type="xs:int"
-          dfdl:inputValueCalc="{ /ex:table/ex:_x + /ex:table/ex:_y + /ex:table/ex:_z }" />
-        <xs:element name="concat" type="xs:string"
-          dfdl:inputValueCalc="{ fn:concat(fn:concat(/ex:table/ex:_x,/ex:table/ex:_y),/ex:table/ex:_z) }" />
-        <xs:element name="x" type="xs:string" dfdl:inputValueCalc="{ xs:string(../ex:_x) }" />
-        <xs:element name="y" type="xs:string" dfdl:inputValueCalc="{ xs:string(../ex:_y) }" />
-        <xs:element name="z" type="xs:string" dfdl:inputValueCalc="{ xs:string(../ex:_z) }" />
-        <xs:element name="productAgain" type="xs:string"
-          dfdl:inputValueCalc="{ xs:string(../ex:product) }" />
+                 lengthKind="delimited" separator=""
+                 leadingSkip='0' encoding="US-ASCII" ignoreCase='no' initiator=""
+                 terminator="" initiatedContent="no" textNumberRep="standard"
+                 separatorSuppressionPolicy="anyEmpty" separatorPosition="infix"
+                 occursCountKind="parsed" textTrimKind="none"/>
+
+    <!-- Parsing values as a hidden layer, then
+      creating elements by evaluating XPath expressions on the layer -->
+
+    <xs:group name="data">
+      <xs:sequence dfdl:separator="">
+        <xs:element name="_x" type="xs:int" dfdl:representation="text"
+                    dfdl:terminator="%NL;" dfdl:outputValueCalc="{ xs:int(../ex:x) }" />
+        <xs:element name="_y" type="xs:int" dfdl:representation="text"
+                    dfdl:terminator="%NL;" dfdl:outputValueCalc="{ xs:int(../ex:y) }" />
+        <xs:element name="_z" type="xs:int" dfdl:representation="text"
+                    dfdl:terminator="%NL;" dfdl:outputValueCalc="{ xs:int(../ex:z) }" />
       </xs:sequence>
-    </xs:complexType>
-  </xs:element>
+    </xs:group>
+
+    <xs:element name="table">
+      <xs:complexType>
+        <xs:sequence>
+          <xs:sequence dfdl:hiddenGroupRef="ex:data" />
+          <xs:element name="product" type="xs:int"
+                      dfdl:inputValueCalc="{ /ex:table/ex:_x * /ex:table/ex:_y * /ex:table/ex:_z }" />
+          <xs:element name="sum" type="xs:int"
+                      dfdl:inputValueCalc="{ /ex:table/ex:_x + /ex:table/ex:_y + /ex:table/ex:_z }" />
+          <xs:element name="concat" type="xs:string"
+                      dfdl:inputValueCalc="{ fn:concat(fn:concat(/ex:table/ex:_x,/ex:table/ex:_y),/ex:table/ex:_z) }" />
+          <xs:element name="x" type="xs:string" dfdl:inputValueCalc="{ xs:string(../ex:_x) }" />
+          <xs:element name="y" type="xs:string" dfdl:inputValueCalc="{ xs:string(../ex:_y) }" />
+          <xs:element name="z" type="xs:string" dfdl:inputValueCalc="{ xs:string(../ex:_z) }" />
+          <xs:element name="productAgain" type="xs:string"
+                      dfdl:inputValueCalc="{ xs:string(../ex:product) }" />
+        </xs:sequence>
+      </xs:complexType>
+    </xs:element>
   </tdml:defineSchema>
-  
+
   <tdml:parserTestCase name="AC000" root="table" model="AC-Embedded"
-    description="inputValueCalc expressions and hiddenGroupRef">
+                       description="inputValueCalc expressions and hiddenGroupRef">
     <tdml:document>
-	  <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[10%LF;20%LF;30%LF;]]></tdml:documentPart>
-	</tdml:document>
+      <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[10%LF;20%LF;30%LF;]]></tdml:documentPart>
+    </tdml:document>
     <tdml:infoset>
       <tdml:dfdlInfoset>
         <table>
@@ -1047,242 +1047,241 @@
     </tdml:infoset>
   </tdml:parserTestCase>
 
-	<tdml:defineSchema name="nestedGroupRefs">
-		<xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
-		<xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
+  <tdml:defineSchema name="nestedGroupRefs">
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited"
-          occursCountKind='parsed'/>
-
-		<xs:element name="root">
-			<xs:complexType>
-				<xs:group ref="ex:g0" dfdl:separator="%NL;"></xs:group>
-			</xs:complexType>
-		</xs:element>
-		<xs:group name="g0">
-			<xs:sequence dfdl:separatorPosition="infix">
-				<xs:element name="g0c0" minOccurs="0">
-					<xs:complexType>
-						<xs:group ref="ex:g1" dfdl:separator="|"></xs:group>
-					</xs:complexType>
-				</xs:element>
-			</xs:sequence>
-		</xs:group>
-		<xs:group name="g1">
-			<xs:sequence dfdl:separatorPosition="infix">
-				<xs:element name="g1c0" minOccurs="0">
-					<xs:complexType>
-						<xs:group ref="ex:g2" dfdl:separator=","></xs:group>
-					</xs:complexType>
-				</xs:element>
-			</xs:sequence>
-		</xs:group>
-		<xs:group name="g2">
-			<xs:sequence dfdl:separatorPosition="infix">
-				<xs:element name="g2c0" type="xs:string" />
-				<xs:element name="g2c1" type="xs:string" />
-				<xs:element name="g2c2" type="xs:string" />
-			</xs:sequence>
-		</xs:group>
-
-	</tdml:defineSchema>
-
-	<tdml:parserTestCase name="nestedGroupRefs" root="root"
-		model="nestedGroupRefs" description="Verify that nested group references are working properly - DFDL-14">
-
-		<tdml:document>
-		  <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[A,B,C|D,E,F|G,H,I%LF;A,B,C|D,E,F|G,H,I%LF;A,B,C|D,E,F|G,H,I]]></tdml:documentPart>
-		</tdml:document>
-
-		<tdml:infoset>
-			<tdml:dfdlInfoset>
-				<root>
-					<g0c0>
-						<g1c0>
-							<g2c0>A</g2c0>
-							<g2c1>B</g2c1>
-							<g2c2>C</g2c2>
-						</g1c0>
-						<g1c0>
-							<g2c0>D</g2c0>
-							<g2c1>E</g2c1>
-							<g2c2>F</g2c2>
-						</g1c0>
-						<g1c0>
-							<g2c0>G</g2c0>
-							<g2c1>H</g2c1>
-							<g2c2>I</g2c2>
-						</g1c0>
-					</g0c0>
-					<g0c0>
-						<g1c0>
-							<g2c0>A</g2c0>
-							<g2c1>B</g2c1>
-							<g2c2>C</g2c2>
-						</g1c0>
-						<g1c0>
-							<g2c0>D</g2c0>
-							<g2c1>E</g2c1>
-							<g2c2>F</g2c2>
-						</g1c0>
-						<g1c0>
-							<g2c0>G</g2c0>
-							<g2c1>H</g2c1>
-							<g2c2>I</g2c2>
-						</g1c0>
-					</g0c0>
-					<g0c0>
-						<g1c0>
-							<g2c0>A</g2c0>
-							<g2c1>B</g2c1>
-							<g2c2>C</g2c2>
-						</g1c0>
-						<g1c0>
-							<g2c0>D</g2c0>
-							<g2c1>E</g2c1>
-							<g2c2>F</g2c2>
-						</g1c0>
-						<g1c0>
-							<g2c0>G</g2c0>
-							<g2c1>H</g2c1>
-							<g2c2>I</g2c2>
-						</g1c0>
-					</g0c0>
-				</root>
-			</tdml:dfdlInfoset>
-		</tdml:infoset>
+                 occursCountKind='parsed'/>
+
+    <xs:element name="root">
+      <xs:complexType>
+        <xs:group ref="ex:g0" dfdl:separator="%NL;"></xs:group>
+      </xs:complexType>
+    </xs:element>
+    <xs:group name="g0">
+      <xs:sequence dfdl:separatorPosition="infix">
+        <xs:element name="g0c0" minOccurs="0">
+          <xs:complexType>
+            <xs:group ref="ex:g1" dfdl:separator="|"></xs:group>
+          </xs:complexType>
+        </xs:element>
+      </xs:sequence>
+    </xs:group>
+    <xs:group name="g1">
+      <xs:sequence dfdl:separatorPosition="infix">
+        <xs:element name="g1c0" minOccurs="0">
+          <xs:complexType>
+            <xs:group ref="ex:g2" dfdl:separator=","></xs:group>
+          </xs:complexType>
+        </xs:element>
+      </xs:sequence>
+    </xs:group>
+    <xs:group name="g2">
+      <xs:sequence dfdl:separatorPosition="infix">
+        <xs:element name="g2c0" type="xs:string" />
+        <xs:element name="g2c1" type="xs:string" />
+        <xs:element name="g2c2" type="xs:string" />
+      </xs:sequence>
+    </xs:group>
+
+  </tdml:defineSchema>
+
+  <tdml:parserTestCase name="nestedGroupRefs" root="root"
+                       model="nestedGroupRefs" description="Verify that nested group references are working properly - DFDL-14">
+
+    <tdml:document>
+      <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[A,B,C|D,E,F|G,H,I%LF;A,B,C|D,E,F|G,H,I%LF;A,B,C|D,E,F|G,H,I]]></tdml:documentPart>
+    </tdml:document>
+
+    <tdml:infoset>
+      <tdml:dfdlInfoset>
+        <root>
+          <g0c0>
+            <g1c0>
+              <g2c0>A</g2c0>
+              <g2c1>B</g2c1>
+              <g2c2>C</g2c2>
+            </g1c0>
+            <g1c0>
+              <g2c0>D</g2c0>
+              <g2c1>E</g2c1>
+              <g2c2>F</g2c2>
+            </g1c0>
+            <g1c0>
+              <g2c0>G</g2c0>
+              <g2c1>H</g2c1>
+              <g2c2>I</g2c2>
+            </g1c0>
+          </g0c0>
+          <g0c0>
+            <g1c0>
+              <g2c0>A</g2c0>
+              <g2c1>B</g2c1>
+              <g2c2>C</g2c2>
+            </g1c0>
+            <g1c0>
+              <g2c0>D</g2c0>
+              <g2c1>E</g2c1>
+              <g2c2>F</g2c2>
+            </g1c0>
+            <g1c0>
+              <g2c0>G</g2c0>
+              <g2c1>H</g2c1>
+              <g2c2>I</g2c2>
+            </g1c0>
+          </g0c0>
+          <g0c0>
+            <g1c0>
+              <g2c0>A</g2c0>
+              <g2c1>B</g2c1>
+              <g2c2>C</g2c2>
+            </g1c0>
+            <g1c0>
+              <g2c0>D</g2c0>
+              <g2c1>E</g2c1>
+              <g2c2>F</g2c2>
+            </g1c0>
+            <g1c0>
+              <g2c0>G</g2c0>
+              <g2c1>H</g2c1>
+              <g2c2>I</g2c2>
+            </g1c0>
+          </g0c0>
+        </root>
+      </tdml:dfdlInfoset>
+    </tdml:infoset>
 
   </tdml:parserTestCase>
 
-	<tdml:defineSchema name="nestedGroupRefs2">
-		<xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
-        <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" 
-          occursCountKind='parsed'/>
-
-		<xs:element name="root">
-			<xs:complexType>
-				<xs:group ref="ex:g0" dfdl:separator="%NL;"></xs:group>
-			</xs:complexType>
-		</xs:element>
-		<xs:group name="g0">
-			<xs:sequence dfdl:separatorPosition="infix">
-				<xs:element name="g0c0" minOccurs="0">
-					<xs:complexType>
-						<xs:group ref="ex:g1" dfdl:separator="|"></xs:group>
-					</xs:complexType>
-				</xs:element>
-			</xs:sequence>
-		</xs:group>
-		<xs:group name="g1">
-			<xs:sequence dfdl:separatorPosition="infix">
-				<xs:element name="g1c0" minOccurs="0">
-					<xs:complexType>
-						<xs:group ref="ex:g2" dfdl:separator=","></xs:group>
-					</xs:complexType>
-				</xs:element>
-			</xs:sequence>
-		</xs:group>
-		<xs:group name="g2">
-			<xs:sequence dfdl:separatorPosition="infix">
-				<xs:element name="g2c0" type="xs:string" />
-				<xs:element name="g2c1" type="xs:string" />
+  <tdml:defineSchema name="nestedGroupRefs2">
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
+    <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited"
+                 occursCountKind='parsed'/>
+
+    <xs:element name="root">
+      <xs:complexType>
+        <xs:group ref="ex:g0" dfdl:separator="%NL;"></xs:group>
+      </xs:complexType>
+    </xs:element>
+    <xs:group name="g0">
+      <xs:sequence dfdl:separatorPosition="infix">
+        <xs:element name="g0c0" minOccurs="0">
+          <xs:complexType>
+            <xs:group ref="ex:g1" dfdl:separator="|"></xs:group>
+          </xs:complexType>
+        </xs:element>
+      </xs:sequence>
+    </xs:group>
+    <xs:group name="g1">
+      <xs:sequence dfdl:separatorPosition="infix">
+        <xs:element name="g1c0" minOccurs="0">
+          <xs:complexType>
+            <xs:group ref="ex:g2" dfdl:separator=","></xs:group>
+          </xs:complexType>
+        </xs:element>
+      </xs:sequence>
+    </xs:group>
+    <xs:group name="g2">
+      <xs:sequence dfdl:separatorPosition="infix">
+        <xs:element name="g2c0" type="xs:string" />
+        <xs:element name="g2c1" type="xs:string" />
         <xs:element name="g2c2" type="xs:string" />
         <xs:sequence dfdl:hiddenGroupRef="ex:hg" />
         <xs:group ref="ex:vg" />
-			</xs:sequence>
+      </xs:sequence>
     </xs:group>
     <xs:group name="hg">
       <xs:choice>
         <xs:element name="inty" type="xs:int"
-          dfdl:lengthKind="delimited" dfdl:outputValueCalc="{ 1 }" />
+                    dfdl:lengthKind="delimited" dfdl:outputValueCalc="{ 1 }" />
         <xs:element name="stringy" type="xs:string"
-          dfdl:lengthKind="delimited" />
+                    dfdl:lengthKind="delimited" />
       </xs:choice>
     </xs:group>
     <xs:group name="vg">
       <xs:choice>
         <xs:element name="inty" type="xs:int"
-          dfdl:lengthKind="delimited" />
+                    dfdl:lengthKind="delimited" />
         <xs:element name="stringy" type="xs:string"
-          dfdl:lengthKind="delimited" />
+                    dfdl:lengthKind="delimited" />
       </xs:choice>
     </xs:group>
 
   </tdml:defineSchema>
 
-	<tdml:parserTestCase name="nestedGroupRefs2" root="root"
-		model="nestedGroupRefs2" description="Verify that nested hidden groups and choices work correctly - DFDL-14-039R"
-		roundTrip="twoPass">
-
-		<tdml:document>
-		  <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[A,B,C,1,x|D,E,F,2,y|G,H,I,3,z%LF;A,B,C,x,1|D,E,F,y,2|G,H,I,z,3%LF;A,B,C,4,u|D,E,F,5,v|G,H,I,6,w]]></tdml:documentPart>
-		</tdml:document>
-
-		<tdml:infoset>
-			<tdml:dfdlInfoset>
-				<root>
-					<g0c0>
-						<g1c0>
-							<g2c0>A</g2c0>
-							<g2c1>B</g2c1>
-							<g2c2>C</g2c2>
-							<stringy>x</stringy>
-						</g1c0>
-						<g1c0>
-							<g2c0>D</g2c0>
-							<g2c1>E</g2c1>
-							<g2c2>F</g2c2>
-							<stringy>y</stringy>
-						</g1c0>
-						<g1c0>
-							<g2c0>G</g2c0>
-							<g2c1>H</g2c1>
-							<g2c2>I</g2c2>
-							<stringy>z</stringy>
-						</g1c0>
-					</g0c0>
-					<g0c0>
-						<g1c0>
-							<g2c0>A</g2c0>
-							<g2c1>B</g2c1>
-							<g2c2>C</g2c2>
-							<inty>1</inty>
-						</g1c0>
-						<g1c0>
-							<g2c0>D</g2c0>
-							<g2c1>E</g2c1>
-							<g2c2>F</g2c2>
-							<inty>2</inty>
-						</g1c0>
-						<g1c0>
-							<g2c0>G</g2c0>
-							<g2c1>H</g2c1>
-							<g2c2>I</g2c2>
-							<inty>3</inty>
-						</g1c0>
-					</g0c0>
-					<g0c0>
-						<g1c0>
-							<g2c0>A</g2c0>
-							<g2c1>B</g2c1>
-							<g2c2>C</g2c2>
-							<stringy>u</stringy>
-						</g1c0>
-						<g1c0>
-							<g2c0>D</g2c0>
-							<g2c1>E</g2c1>
-							<g2c2>F</g2c2>
-							<stringy>v</stringy>
-						</g1c0>
-						<g1c0>
-							<g2c0>G</g2c0>
-							<g2c1>H</g2c1>
-							<g2c2>I</g2c2>
-							<stringy>w</stringy>
-						</g1c0>
-					</g0c0>
-				</root>
-			</tdml:dfdlInfoset>
-		</tdml:infoset>
+  <tdml:parserTestCase name="nestedGroupRefs2" root="root"
+                       model="nestedGroupRefs2" description="Verify that nested hidden groups and choices work correctly - DFDL-14-039R"
+                       roundTrip="twoPass">
+
+    <tdml:document>
+      <tdml:documentPart type="text" replaceDFDLEntities="true"><![CDATA[A,B,C,1,x|D,E,F,2,y|G,H,I,3,z%LF;A,B,C,x,1|D,E,F,y,2|G,H,I,z,3%LF;A,B,C,4,u|D,E,F,5,v|G,H,I,6,w]]></tdml:documentPart>
+    </tdml:document>
+
+    <tdml:infoset>
+      <tdml:dfdlInfoset>
+        <root>
+          <g0c0>
+            <g1c0>
+              <g2c0>A</g2c0>
+              <g2c1>B</g2c1>
+              <g2c2>C</g2c2>
+              <stringy>x</stringy>
+            </g1c0>
+            <g1c0>
+              <g2c0>D</g2c0>
+              <g2c1>E</g2c1>
+              <g2c2>F</g2c2>
+              <stringy>y</stringy>
+            </g1c0>
+            <g1c0>
+              <g2c0>G</g2c0>
+              <g2c1>H</g2c1>
+              <g2c2>I</g2c2>
+              <stringy>z</stringy>
+            </g1c0>
+          </g0c0>
+          <g0c0>
+            <g1c0>
+              <g2c0>A</g2c0>
+              <g2c1>B</g2c1>
+              <g2c2>C</g2c2>
+              <inty>1</inty>
+            </g1c0>
+            <g1c0>
+              <g2c0>D</g2c0>
+              <g2c1>E</g2c1>
+              <g2c2>F</g2c2>
+              <inty>2</inty>
+            </g1c0>
+            <g1c0>
+              <g2c0>G</g2c0>
+              <g2c1>H</g2c1>
+              <g2c2>I</g2c2>
+              <inty>3</inty>
+            </g1c0>
+          </g0c0>
+          <g0c0>
+            <g1c0>
+              <g2c0>A</g2c0>
+              <g2c1>B</g2c1>
+              <g2c2>C</g2c2>
+              <stringy>u</stringy>
+            </g1c0>
+            <g1c0>
+              <g2c0>D</g2c0>
+              <g2c1>E</g2c1>
+              <g2c2>F</g2c2>
+              <stringy>v</stringy>
+            </g1c0>
+            <g1c0>
+              <g2c0>G</g2c0>
+              <g2c1>H</g2c1>
+              <g2c2>I</g2c2>
+              <stringy>w</stringy>
+            </g1c0>
+          </g0c0>
+        </root>
+      </tdml:dfdlInfoset>
+    </tdml:infoset>
 
   </tdml:parserTestCase>
 
@@ -1291,7 +1290,7 @@
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited" />
 
     <xs:element name="emptySeq" type="ex:complexEmptySeq" dfdl:lengthKind="implicit"/>
-    
+
     <xs:complexType name="complexEmptySeq">
       <xs:sequence/>
     </xs:complexType>
@@ -1302,9 +1301,9 @@
        Schema: emptySDEschema
       Purpose: This test demonstrates that DFDL allows complexTypes with empty content (not to be confused with NO content)
   -->
-  
+
   <tdml:parserTestCase name="noDefaultSeqKind" root="emptySeq"
-    model="noDefault" description="Section 14 - DFDL-14-007R.">
+                       model="noDefault" description="Section 14 - DFDL-14-007R.">
     <tdml:document>
       <tdml:documentPart type="text"></tdml:documentPart>
     </tdml:document>
@@ -1317,7 +1316,7 @@
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="sequenceWithComplexType" root="e1"
-	model="sequenceWithComplexType.dfdl.xsd" description="">
+                       model="sequenceWithComplexType.dfdl.xsd" description="">
 
     <tdml:document>-;test;test2/</tdml:document>
     <tdml:infoset>
@@ -1361,7 +1360,7 @@
   -->
 
   <tdml:parserTestCase name="hiddenGroupSeqWithRequiredElements" root="e"
-    model="hiddenGroupSeqWithRequiredElements" description="Section 14 - Hidden Groups - DFDL-14-042R">
+                       model="hiddenGroupSeqWithRequiredElements" description="Section 14 - Hidden Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[145,2]]></tdml:documentPart>
     </tdml:document>
@@ -1401,7 +1400,7 @@
   -->
 
   <tdml:parserTestCase name="hiddenGroupChoiceWithAllRequiredBranches" root="e"
-    model="hiddenGroupChoiceWithAllRequiredBranches" description="Section 14 - Hidden Groups - DFDL-14-042R">
+                       model="hiddenGroupChoiceWithAllRequiredBranches" description="Section 14 - Hidden Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[145,2]]></tdml:documentPart>
     </tdml:document>
@@ -1452,7 +1451,7 @@
 
 
   <tdml:parserTestCase name="sequence_group_with_annotation_01" root="e1"
-    model="groupsWithAnnotations" description="Section 14 - Groups - DFDL-14-042R">
+                       model="groupsWithAnnotations" description="Section 14 - Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[10st]]></tdml:documentPart>
     </tdml:document>
@@ -1467,7 +1466,7 @@
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="choice_group_with_annotation_01" root="e2"
-    model="groupsWithAnnotations" description="Section 14 - Groups - DFDL-14-042R">
+                       model="groupsWithAnnotations" description="Section 14 - Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[st]]></tdml:documentPart>
     </tdml:document>
@@ -1481,7 +1480,7 @@
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="similar_model_groups_01" root="root"
-    model="SimilarModelGroupRoot.dfdl.xsd" description="Section 14 - Groups - DFDL-14-042R">
+                       model="SimilarModelGroupRoot.dfdl.xsd" description="Section 14 - Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[0a0b]]></tdml:documentPart>
     </tdml:document>
@@ -1507,7 +1506,7 @@
 
     <xs:group name="hg">
       <xs:sequence>
-        <xs:element name="original" type="xs:int" dfdl:outputValueCalc="{ (../ex:value - 1) div 2 }" />
+        <xs:element name="original" type="xs:int" dfdl:outputValueCalc="{ xs:int((../ex:value - 1) div 2) }" />
         <xs:element name="transformed" type="xs:int" dfdl:inputValueCalc="{ ../ex:original * 2 }" />
       </xs:sequence>
     </xs:group>
@@ -1523,7 +1522,7 @@
   </tdml:defineSchema>
 
   <tdml:parserTestCase name="hiddenGroupIVC" root="e"
-    model="hiddenGroupIVC" description="Section 14 - Groups - DFDL-14-042R">
+                       model="hiddenGroupIVC" description="Section 14 - Groups - DFDL-14-042R">
     <tdml:document>
       <tdml:documentPart type="text"><![CDATA[3]]></tdml:documentPart>
     </tdml:document>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroupInitiatedContent.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroupInitiatedContent.tdml
index 97b721474..2765480ff 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroupInitiatedContent.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroupInitiatedContent.tdml
@@ -115,7 +115,7 @@
   </tdml:parserTestCase>
   
   <tdml:defineSchema name="s2" elementFormDefault="unqualified">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     
     <dfdl:format ref="ex:GeneralFormat" 
       occursCountKind='parsed'
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section14/unordered_sequences/UnorderedSequences.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section14/unordered_sequences/UnorderedSequences.tdml
index 0bd102ade..d74d12832 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section14/unordered_sequences/UnorderedSequences.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section14/unordered_sequences/UnorderedSequences.tdml
@@ -490,7 +490,7 @@
                 dfdl:lengthKind="delimited" dfdl:initiator="z">
                 <xs:annotation>
                   <xs:appinfo source="http://www.ogf.org/dfdl/">
-                    <dfdl:assert test="{ ../ex:e1 }" message="Assertion failed for ../ex:e1" />
+                    <dfdl:assert test="{ xs:boolean(../ex:e1) }" message="Assertion failed for ../ex:e1" />
                   </xs:appinfo>
                 </xs:annotation>
               </xs:element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/choice1773.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/choice1773.tdml
index 74b91893e..7a6c9a6ad 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/choice1773.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/choice1773.tdml
@@ -23,6 +23,7 @@
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" 
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   xmlns:ex="http://example.com" 
   xmlns:fn="http://www.w3.org/2005/xpath-functions">
 
@@ -76,14 +77,14 @@
                 </xs:sequence>
               </xs:choice>
               <xs:choice>
-                <xs:element name="C1" type="xs:string" dfdl:length="1">
+                <xs:element name="C1" type="xs:string" dfdl:length="1" daf:suppressSchemaDefinitionWarnings="queryStylePathExpression">
                   <xs:annotation>
                     <xs:appinfo source="http://www.ogf.org/dfdl/">
                       <dfdl:discriminator>{ ../C eq "1" }</dfdl:discriminator>
                     </xs:appinfo>
                   </xs:annotation>
                 </xs:element>
-                <xs:element name="C2" type="xs:string" dfdl:length="1">
+                <xs:element name="C2" type="xs:string" dfdl:length="1" daf:suppressSchemaDefinitionWarnings="queryStylePathExpression">
                   <xs:annotation>
                     <xs:appinfo source="http://www.ogf.org/dfdl/">
                       <dfdl:discriminator>{ ../C eq "2" }</dfdl:discriminator>
@@ -116,7 +117,8 @@
 
 </tdml:defineSchema>
 
-  <tdml:parserTestCase name="choiceSlotAmbiguous1" root="msgA" model="s2" description="Choice branches with same element name inside.">
+  <tdml:parserTestCase name="choiceSlotAmbiguous1" root="msgA" model="s2"
+                       description="Choice branches with same element name inside.">
 
     <tdml:document><![CDATA[A1Y]]></tdml:document>
 
@@ -132,7 +134,8 @@
   </tdml:parserTestCase>
   
 
- <tdml:parserTestCase name="choiceSlotAmbiguous2" root="msgA" model="s2" description="Choice branches with same element name inside.">
+ <tdml:parserTestCase name="choiceSlotAmbiguous2" root="msgA" model="s2"
+                      description="Choice branches with same element name inside.">
 
     <tdml:document><![CDATA[B2X]]></tdml:document>
 
@@ -145,7 +148,6 @@
          </ex:msgA>
       </tdml:dfdlInfoset>
     </tdml:infoset>
-
   </tdml:parserTestCase>
   
    <tdml:parserTestCase name="queryStyle1" root="msgB" model="s2" description="Query style expression gives warning and runtime SDE.">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/testSharedGroups.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/testSharedGroups.tdml
index 43a92e5b0..05b2ee961 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/testSharedGroups.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section15/choice_groups/testSharedGroups.tdml
@@ -38,6 +38,12 @@
         </ex:msg>
       </dfdlInfoset>
     </infoset>
+    <!-- test will fail with missing warning once DAFFODIL-2875 is fixed -->
+    <warnings>
+      <warning>DFDL property</warning>
+      <warning>ignored</warning>
+      <warning>choiceDispatchKey="{ 'V' }"</warning>
+    </warnings>
   </unparserTestCase>
 
   <unparserTestCase name="Nack"
@@ -53,6 +59,12 @@
         </ex:msg>
       </dfdlInfoset>
     </infoset>
+    <!-- test will fail with missing warning once DAFFODIL-2875 is fixed -->
+    <warnings>
+      <warning>DFDL property</warning>
+      <warning>ignored</warning>
+      <warning>choiceDispatchKey="{ 'V' }"</warning>
+    </warnings>
   </unparserTestCase>
 
   <unparserTestCase name="badElement"
@@ -76,6 +88,12 @@
       <error>(invalid)</error>
       <error>badElement</error>
     </errors>
+    <!-- test will fail with missing warning once DAFFODIL-2875 is fixed -->
+    <warnings>
+      <warning>DFDL property</warning>
+      <warning>ignored</warning>
+      <warning>choiceDispatchKey="{ 'V' }"</warning>
+    </warnings>
   </unparserTestCase>
 
 </testSuite>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayComb.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayComb.tdml
index 61259d8f3..c5886d899 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayComb.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayComb.tdml
@@ -39,11 +39,13 @@
         <xs:element name="bar" minOccurs="1" maxOccurs="2" dfdl:occursCountKind="implicit">
           <xs:complexType>
             <xs:sequence>
-              <xs:annotation>
-                <xs:appinfo source="http://www.ogf.org/dfdl/">
-                  <dfdl:discriminator>{ ../foo gt 0 }</dfdl:discriminator>
-                </xs:appinfo>
-              </xs:annotation>
+              <xs:sequence>
+                <xs:annotation>
+                  <xs:appinfo source="http://www.ogf.org/dfdl/">
+                    <dfdl:discriminator>{ ../foo gt 0 }</dfdl:discriminator>
+                  </xs:appinfo>
+                </xs:annotation>
+              </xs:sequence>
               <xs:sequence dfdl:hiddenGroupRef="ex:hiddenGroup" />
               <xs:group ref="someGroupWithRequiredElement" />
             </xs:sequence>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayOptionalElem.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayOptionalElem.tdml
index 7e720546b..28c744d56 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayOptionalElem.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/ArrayOptionalElem.tdml
@@ -51,7 +51,7 @@
   </tdml:defineSchema>
 
   <tdml:defineSchema name="array-optionalElem.dfdl.xsd">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
 
     <dfdl:format lengthKind="delimited" lengthUnits="bytes"
       ref="ex:GeneralFormat" encoding="UTF-8" separator="" initiator="" terminator=""
@@ -131,7 +131,7 @@
   
   <tdml:defineSchema name="arrays1">
 
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" occursCountKind="implicit"
       lengthKind="delimited" separatorSuppressionPolicy="trailingEmptyStrict"
       separatorPosition="prefix" />
@@ -277,7 +277,7 @@
   </tdml:parserTestCase>
   
   <tdml:defineSchema name="arrayExpressions-portable">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" />
     
     <dfdl:defineVariable name="counter" type="xs:int" />
@@ -322,8 +322,8 @@
   </tdml:defineSchema>
   
   <tdml:defineSchema name="arrayExpressions">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
-    <dfdl:format ref="ex:GeneralFormat" />
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
+    <dfdl:format ref="ex:GeneralFormat"/>
     
     <dfdl:defineVariable name="counter" type="xs:int" />
 
@@ -673,7 +673,7 @@
   </tdml:parserTestCase>
 
   <tdml:defineSchema name="array-ockImplicitSeparators.dfdl.xsd" elementFormDefault="unqualified">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
 
     <dfdl:format lengthKind="delimited" lengthUnits="bytes"
       ref="ex:GeneralFormat" encoding="UTF-8" separator="" initiator="" terminator=""
@@ -745,7 +745,7 @@
   </tdml:defineSchema>
 
   <tdml:defineSchema name="array-ockImplicitSeparators.dfdl.xsd-strict" elementFormDefault="unqualified">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
 
     <dfdl:format lengthKind="delimited" lengthUnits="bytes"
       ref="ex:GeneralFormat" encoding="UTF-8" separator="" initiator="" terminator=""
@@ -948,7 +948,7 @@
   </tdml:defineSchema>
       
   <tdml:defineSchema name="nestedSequence-strict" elementFormDefault="unqualified">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
 
     <dfdl:format lengthKind="delimited" lengthUnits="bytes"
       ref="ex:GeneralFormat" encoding="UTF-8" separator="" initiator="" terminator=""
@@ -1038,7 +1038,7 @@
   </tdml:parserTestCase>
   
  <tdml:defineSchema name="adjacent"  elementFormDefault="unqualified">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited"/>
     
     <xs:element name="r">
@@ -1070,7 +1070,7 @@
   </tdml:parserTestCase>
 
  <tdml:defineSchema name="dfdl2263"  elementFormDefault="unqualified">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" lengthKind="delimited"/>
 
     <xs:element name="input">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/UnparseArrayDelimitedOptionalElem.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/UnparseArrayDelimitedOptionalElem.tdml
index 984472a2e..8f4bad538 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/UnparseArrayDelimitedOptionalElem.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/UnparseArrayDelimitedOptionalElem.tdml
@@ -23,14 +23,15 @@
   xmlns:ex="http://example.com" xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext">
 
   <tdml:defineSchema name="s1">
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
 
-    <dfdl:format lengthKind="explicit" length="1" ref="ex:GeneralFormat" encodingErrorPolicy="replace"
+    <dfdl:format lengthKind="explicit" length="1" ref="ex:GeneralFormat"
       separator="" initiator="" terminator="" occursCountKind="implicit"
       ignoreCase="no" textNumberRep="standard" representation="text" separatorSuppressionPolicy="anyEmpty" textPadKind="padChar" textStringPadCharacter="."/>
     <dfdl:defineFormat name="root">
       <dfdl:format lengthKind="delimited" ref="ex:GeneralFormat" separatorSuppressionPolicy="anyEmpty"
-        separator="," initiator="" terminator="" representation="text" separatorPosition="infix" textPadKind="padChar" textStringPadCharacter="."/>
+        separator="," initiator="" terminator="" representation="text" separatorPosition="infix"
+        textPadKind="padChar" textStringPadCharacter="."/>
     </dfdl:defineFormat>
 
     <xs:element name="r1" dfdl:ref="ex:root">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/arrays_optional_elements.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/arrays_optional_elements.dfdl.xsd
index c8a578ecf..ebb98a512 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/arrays_optional_elements.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/arrays_optional_elements.dfdl.xsd
@@ -18,7 +18,7 @@
 
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/">
 
-  <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+  <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
   
   <xs:annotation>
     <xs:appinfo source="http://www.ogf.org/dfdl/">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/backtracking.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/backtracking.tdml
index 2f417fc9b..337de7e3f 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/backtracking.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section16/array_optional_elem/backtracking.tdml
@@ -26,7 +26,7 @@
   <tdml:defineSchema name="s">
 
     <!-- Must be utf-8, or it chooses the other backend which does more copying and so doesn't show up the bug. -->
-    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormatPortable.dfdl.xsd"/>
+    <xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
     <dfdl:format ref="ex:GeneralFormat" encoding="UTF-8" lengthKind="delimited" />
 
     <xsd:element name="A">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AQ.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AQ.tdml
index aa3421ae9..acfa36418 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AQ.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AQ.tdml
@@ -47,7 +47,7 @@
           <xs:element name="Subtract" type="xsd:float"
             dfdl:inputValueCalc="{ ../tns:x - ../tns:y }" />
           <xs:element name="SubtractLiteral" type="xsd:float"
-            dfdl:inputValueCalc="{ ../tns:x - 2 }" />
+            dfdl:inputValueCalc="{ xs:float(../tns:x - 2) }" />
         </xs:sequence>
       </xs:complexType>
     </xs:element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AR.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AR.tdml
index 79ea147a7..05f176baf 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AR.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/AR.tdml
@@ -54,7 +54,7 @@
           <element name="Subtract" type="xsd:float"
             dfdl:inputValueCalc="{ ../tns:x - ../tns:y }" />
           <element name="SubtractLiteral" type="xsd:float"
-            dfdl:inputValueCalc="{ ../tns:x - 2 }" />
+            dfdl:inputValueCalc="{ xsd:float(../tns:x - 2) }" />
         </sequence>
       </complexType>
     </element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/computedLengthFields.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/computedLengthFields.tdml
index 53298ebe0..677cdd07f 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/computedLengthFields.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/computedLengthFields.tdml
@@ -21,6 +21,7 @@
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
            xmlns:dfdlx="http://www.ogf.org/dfdl/dfdl-1.0/extensions"
+           xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:ex="http://example.com">
 
@@ -465,7 +466,8 @@
           <element name="s1" type="xs:string"
                    dfdl:lengthKind="delimited"
                    dfdl:terminator=";"
-                   dfdl:alignment="8"/>
+                   dfdl:alignment="8"
+                   daf:suppressSchemaDefinitionWarnings="ignoreDFDLProperty"/>
         </sequence>
       </complexType>
     </element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/inputValueCalc.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/inputValueCalc.tdml
index 0a48944ee..16522b2ed 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/inputValueCalc.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/inputValueCalc.tdml
@@ -18,6 +18,7 @@
 
 <tdml:testSuite xmlns:ex="http://example.com" xmlns="http://example.com"
   xmlns:tdml="http://www.ibm.com/xmlns/dfdl/testData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"
   xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
 
   <tdml:defineSchema name="inputValueCalc-Embedded.dfdl.xsd">
@@ -80,7 +81,7 @@
           <xs:element name="e3" type="xs:int"
             dfdl:lengthKind="delimited" />
           <xs:element name="divide" type="xs:float"
-            dfdl:inputValueCalc="{ xs:int(../ex:e2) div xs:int(../ex:e3) }" />
+            dfdl:inputValueCalc="{ xs:float(xs:int(../ex:e2) div xs:int(../ex:e3)) }" />
         </xs:sequence>
       </xs:complexType>
     </xs:element>
@@ -469,7 +470,9 @@
       <xs:complexType>
         <xs:sequence>
           <xs:element name="double" type="xs:double" />
-          <xs:element name="ivc_ulong_from_double" type="xs:unsignedLong" dfdl:inputValueCalc="{ ../ex:double }"/>
+          <xs:element name="ivc_ulong_from_double" type="xs:unsignedLong"
+                      daf:suppressSchemaDefinitionWarnings="deprecatedExpressionResultCoercion"
+                      dfdl:inputValueCalc="{ ../ex:double }"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/outputValueCalc2.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/outputValueCalc2.tdml
index d595c4bef..10a58484c 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/outputValueCalc2.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section17/calc_value_properties/outputValueCalc2.tdml
@@ -219,7 +219,9 @@
     <xs:group name="IPSrcGrp">
       <xs:sequence>
         <xs:element name="sbyte1" default="0" type="xs:unsignedByte" 
-        dfdl:outputValueCalc="{ xs:unsignedByte(../IPSrc) }"/>
+        dfdl:outputValueCalc="{ xs:unsignedByte(../IPSrc) }"
+        daf:suppressSchemaDefinitionWarnings="noEmptyDefault"
+        />
       </xs:sequence>
     </xs:group>
 
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_expressions/expressions.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_expressions/expressions.tdml
index e96d00d0f..81c1f394e 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_expressions/expressions.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_expressions/expressions.tdml
@@ -202,7 +202,7 @@
               </xs:sequence>
             </xs:complexType>
           </xs:element>
-          <xs:element name="beyond" type="xs:string" dfdl:inputValueCalc="{ ../../../. }"/>
+          <xs:element name="beyond" type="xs:string" dfdl:inputValueCalc="{ xs:string(../../../.) }"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
@@ -213,7 +213,8 @@
           <xs:element name="a" type="xs:int" />
           <xs:element name="a" type="xs:int" />
           <xs:element name="a" type="xs:int" />
-          <xs:element name="ivc" type="xs:int" dfdl:inputValueCalc="{ fn:exists(../ex:a) }"/>
+          <xs:element name="ivc" type="xs:int" dfdl:inputValueCalc="{ xs:int(fn:exists(../ex:a)) }"
+                      daf:suppressSchemaDefinitionWarnings="queryStylePathExpression"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
@@ -224,7 +225,8 @@
           <xs:element name="a" type="xs:int" />
           <xs:element name="a" type="xs:int" />
           <xs:element name="a" type="xs:int" />
-          <xs:element name="ivc" type="xs:int" dfdl:inputValueCalc="{ ../ex:a[2] }"/>
+          <xs:element name="ivc" type="xs:int" dfdl:inputValueCalc="{ ../ex:a[2] }"
+                      daf:suppressSchemaDefinitionWarnings="queryStylePathExpression"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
@@ -2632,7 +2634,7 @@ blastoff
         <xs:element name="cnt" type="xs:int" dfdl:lengthKind="delimited" />
         <xs:sequence>
           <xs:element name="v" type="ex:cnt1"
-                dfdl:inputValueCalc="{ dfdl:checkConstraints(if(../ex:cnt eq 0) then ../ex:cnt else .) }" />
+                dfdl:inputValueCalc="{ xs:int(dfdl:checkConstraints(if(../ex:cnt eq 0) then ../ex:cnt else .)) }" />
         </xs:sequence>
       </xs:sequence>
     </xs:complexType>
@@ -2812,15 +2814,17 @@ blastoff
                   dfdl:occursCountKind="parsed">
                   <xs:complexType>
                     <xs:sequence>
-                      <xs:annotation>
-                        <xs:appinfo source="http://www.ogf.org/dfdl/">
-                          <dfdl:discriminator><![CDATA[{ 
+                     <xs:sequence>
+                       <xs:annotation>
+                         <xs:appinfo source="http://www.ogf.org/dfdl/">
+                           <dfdl:discriminator><![CDATA[{
                                     if(dfdl:occursIndex() eq 1 ) then fn:true()
                                     else
-                                    ../ex:r[dfdl:occursIndex() - 1]/ex:more eq 1 
+                                    ../ex:r[dfdl:occursIndex() - 1]/ex:more eq 1
                           }]]></dfdl:discriminator>
-                        </xs:appinfo>
-                      </xs:annotation>
+                         </xs:appinfo>
+                       </xs:annotation>
+                     </xs:sequence>
                       <xs:element name="more" type="xs:int"
                         dfdl:lengthKind="explicit" dfdl:length="1" />
                       <xs:element name="c" type="xs:string"
@@ -2996,16 +3000,18 @@ blastoff
     <!-- intended for use in arrays with occursCountKind='parsed' environments -->
     <xs:group name="more">
       <xs:sequence>
-        <xs:annotation>
-          <xs:appinfo source="http://www.ogf.org/dfdl/">
-            <dfdl:discriminator><![CDATA[{ 
+        <xs:sequence>
+          <xs:annotation>
+            <xs:appinfo source="http://www.ogf.org/dfdl/">
+              <dfdl:discriminator><![CDATA[{
                                     if (dfdl:occursIndex() eq 1 )
                                     then fn:true()
-                                    else 
-                                    ../ex:r[dfdl:occursIndex() - 1]/ex:more eq 1 
+                                    else
+                                    ../ex:r[dfdl:occursIndex() - 1]/ex:more eq 1
                           }]]></dfdl:discriminator>
-          </xs:appinfo>
-        </xs:annotation>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:sequence>
         <xs:element name="more" type="xs:unsignedInt"
           dfdl:lengthKind="explicit" dfdl:length="1" />
       </xs:sequence>
@@ -7363,14 +7369,17 @@ blastoff
     <xs:element name="div02" type="xs:float" dfdl:inputValueCalc="{ xs:float(5) div xs:float(2) }" />
     <xs:element name="div03" type="xs:decimal" dfdl:inputValueCalc="{ xs:decimal(5) div xs:decimal(2) }" />
     <xs:element name="div04" type="xs:decimal" dfdl:inputValueCalc="{ xs:integer(5) div xs:integer(2) }" />
-    <xs:element name="div05" type="xs:float" dfdl:inputValueCalc="{ xs:int(5) div xs:int(2) }" />
-    <xs:element name="div06" type="xs:float" dfdl:inputValueCalc="{ xs:short(5) div xs:short(2) }" />
+    <xs:element name="div05" type="xs:float" dfdl:inputValueCalc="{ xs:int(5) div xs:int(2) }"/>
+    <xs:element name="div06" type="xs:float" dfdl:inputValueCalc="{ xs:short(5) div xs:short(2) }"
+                daf:suppressSchemaDefinitionWarnings="deprecatedExpressionResultCoercion"/>
     <xs:element name="div07" type="xs:double" dfdl:inputValueCalc="{ xs:double(5) div xs:double(0) }" />
     <xs:element name="div08" type="xs:float" dfdl:inputValueCalc="{ xs:float(5) div xs:float(0) }" />
     <xs:element name="div09" type="xs:decimal" dfdl:inputValueCalc="{ xs:decimal(5) div xs:decimal(0) }" />
     <xs:element name="div10" type="xs:decimal" dfdl:inputValueCalc="{ xs:integer(5) div xs:integer(0) }" />
-    <xs:element name="div11" type="xs:float" dfdl:inputValueCalc="{ xs:int(5) div xs:int(0) }" />
-    <xs:element name="div12" type="xs:float" dfdl:inputValueCalc="{ xs:short(5) div xs:short(0) }" />
+    <xs:element name="div11" type="xs:float" dfdl:inputValueCalc="{ xs:int(5) div xs:int(0) }"
+                daf:suppressSchemaDefinitionWarnings="deprecatedExpressionResultCoercion"/>
+    <xs:element name="div12" type="xs:float" dfdl:inputValueCalc="{ xs:short(5) div xs:short(0) }"
+                daf:suppressSchemaDefinitionWarnings="deprecatedExpressionResultCoercion"/>
     <xs:element name="div13" type="xs:double" dfdl:inputValueCalc="{ xs:double('INF') div xs:double(2) }" />
     <xs:element name="div14" type="xs:float" dfdl:inputValueCalc="{ xs:float('INF') div xs:float(2) }" />
     <xs:element name="div15" type="xs:double" dfdl:inputValueCalc="{ xs:double('NaN') div xs:double(2) }" />
@@ -7436,6 +7445,9 @@ blastoff
   <tdml:parserTestCase name="div06" root="div06" model="XPathMath" description="Section 23 - DFDL Expressions - div">
     <tdml:document></tdml:document>
     <tdml:infoset><tdml:dfdlInfoset><div06>2.5</div06></tdml:dfdlInfoset></tdml:infoset>
+    <tdml:warnings>
+      <tdml:warning>Performing deprecated automatic conversion</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="div07" root="div07" model="XPathMath" description="Section 23 - DFDL Expressions - div">
@@ -7467,6 +7479,9 @@ blastoff
     <tdml:errors>
       <tdml:error>by zero</tdml:error>
     </tdml:errors>
+    <tdml:warnings>
+      <tdml:warning>Performing deprecated automatic conversion</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="div12" root="div12" model="XPathMath" description="Section 23 - DFDL Expressions - div">
@@ -7474,6 +7489,9 @@ blastoff
     <tdml:errors>
       <tdml:error>by zero</tdml:error>
     </tdml:errors>
+    <tdml:warnings>
+      <tdml:warning>Performing deprecated automatic conversion</tdml:warning>
+    </tdml:warnings>
   </tdml:parserTestCase>
 
   <tdml:parserTestCase name="div13" root="div13" model="XPathMath" description="Section 23 - DFDL Expressions - div">
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml
index b479a547c..e3f7e13be 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml
@@ -544,7 +544,7 @@
           <xs:element name="e1" maxOccurs="unbounded">
             <xs:annotation>
               <xs:appinfo source="http://www.ogf.org/dfdl/">
-                <dfdl:assert message="{ dfdl:contentLength(., 'bytes') }">{ dfdl:contentLength(., 'bytes') eq 3 }</dfdl:assert>
+                <dfdl:assert message="{ fn:concat(xs:string(dfdl:contentLength(., 'bytes')), ' ne 3') }">{ dfdl:contentLength(., 'bytes') eq 3 }</dfdl:assert>
               </xs:appinfo>
             </xs:annotation>
             <xs:complexType>
@@ -4442,7 +4442,7 @@
           <xs:element name="one" type="xs:int" dfdl:lengthKind="delimited"/>
           <xs:element name="two" type="xs:float" dfdl:lengthKind="delimited"/>
           <xs:element name="three" type="xs:long" dfdl:lengthKind="delimited" />
-          <xs:element name="absval" type="xs:float" dfdl:inputValueCalc="{ fn:abs(../ex:one - ../ex:two - ../ex:three) }"/>
+          <xs:element name="absval" type="xs:float" dfdl:inputValueCalc="{ xs:float(fn:abs(../ex:one - ../ex:two - ../ex:three)) }"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
@@ -4453,7 +4453,7 @@
           <xs:element name="one" type="xs:int" dfdl:representation="binary" dfdl:lengthKind="explicit" dfdl:length="1"/>
           <xs:element name="two" type="xs:float"  dfdl:representation="binary" dfdl:lengthKind="explicit" dfdl:length="4"/>
           <xs:element name="three" type="xs:short" dfdl:representation="binary" dfdl:lengthKind="explicit" dfdl:length="2"/>
-          <xs:element name="absval" type="xs:float" dfdl:inputValueCalc="{ fn:abs(../ex:one - ../ex:two - ../ex:three) }"/>
+          <xs:element name="absval" type="xs:float" dfdl:inputValueCalc="{ xs:float(fn:abs(../ex:one - ../ex:two - ../ex:three)) }"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
@@ -14840,7 +14840,7 @@
 		<xs:element name="root">
 			<xs:complexType>
 				<xs:sequence>
-					<xs:element type="xs:double" name="DoubleValue" dfdl:length="8" />
+					<xs:element type="xs:double" name="DoubleValue" dfdl:lengthKind="explicit" dfdl:length="8" />
 					<xs:element type="xs:long" name="LongValue" dfdl:inputValueCalc="{ dfdlx:doubleToRawLong(../ex:DoubleValue) }" />
 				</xs:sequence>
 			</xs:complexType>
@@ -14865,7 +14865,7 @@
         <xs:element name="root">
           <xs:complexType>
             <xs:sequence>
-              <xs:element type="xs:long" name="LongValue" dfdl:length="8" />
+              <xs:element type="xs:long" name="LongValue" dfdl:lengthKind="explicit" dfdl:length="8" />
               <xs:element type="xs:double" name="DoubleValue" dfdl:inputValueCalc="{ dfdlx:doubleFromRawLong(../ex:LongValue) }" />
             </xs:sequence>
           </xs:complexType>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section23/runtime_properties/runtime-properties.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section23/runtime_properties/runtime-properties.tdml
index f59e476fb..be4465203 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/section23/runtime_properties/runtime-properties.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/section23/runtime_properties/runtime-properties.tdml
@@ -47,7 +47,7 @@
           if (xs:unsignedByte(../ex:bom) eq 10) then 'bigEndian' 
           else (
                  if (xs:unsignedByte(../ex:bom) eq 20) then 'littleEndian'
-                 else dfdlx:error()
+                 else fn:error()
                )
       }]]></dfdl:property>
                 </dfdl:element>
@@ -70,7 +70,7 @@
           if (xs:unsignedByte(../ex:bom) eq 10) then 'bigEndian' 
           else (
                  if (xs:unsignedByte(fn:trace(../ex:bom,'bom')) eq 20) then 'littleEndian'
-                 else dfdlx:error()
+                 else fn:error()
                )
       }]]></dfdl:property>
                 </dfdl:element>
@@ -92,7 +92,7 @@
                   <dfdl:property name="byteOrder"><![CDATA[{
           if (xs:unsignedShort(../ex:bom) eq 65279) then 'bigEndian' 
           else if (xs:unsignedShort(../ex:bom) eq 65534) then 'littleEndian'
-          else dfdlx:error()
+          else fn:error()
       }]]></dfdl:property>
                 </dfdl:element>
               </xs:appinfo>
@@ -114,7 +114,7 @@
                 <dfdl:setVariable ref="ex:bom"><![CDATA[{
           if (xs:unsignedShort(.) eq 65279) then 'bigEndian' 
           else if (xs:unsignedShort(.) eq 65534) then 'littleEndian'
-          else dfdlx:error()
+          else fn:error()
       }]]></dfdl:setVariable>
               </xs:appinfo>
             </xs:annotation>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/udf/udfs.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/udf/udfs.tdml
index 492831d42..367208f17 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/udf/udfs.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/udf/udfs.tdml
@@ -48,7 +48,7 @@
       dfdl:inputValueCalc="{ jgsu:replace('Hello World. I am.')}" />
 
     <xs:element name="incorrect_arg_type" type="xs:string"
-      dfdl:inputValueCalc="{ sgiu:addBoxed('Hello', 'world')}" />
+      dfdl:inputValueCalc="{ xs:string(sgiu:addBoxed('Hello', 'world'))}" />
 
     <xs:element name="no_args" type="xs:string"
       dfdl:inputValueCalc="{ sgsu:sayHello()}" />
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/unparser/parseUnparseMode.dfdl.xsd b/daffodil-test/src/test/resources/org/apache/daffodil/unparser/parseUnparseMode.dfdl.xsd
index 9edf6bbb1..cc132b223 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/unparser/parseUnparseMode.dfdl.xsd
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/unparser/parseUnparseMode.dfdl.xsd
@@ -84,7 +84,7 @@
                    However, asserts aren't evaluated when unparsing, so we only error out here 
                    when parsing.
                -->
-              <dfdl:assert>{ dfdlx:error() }</dfdl:assert>
+              <dfdl:assert>{ fn:error() }</dfdl:assert>
            </xs:appinfo></xs:annotation>
       </xs:sequence>
     </xs:group>
diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/usertests/SepTests.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/usertests/SepTests.tdml
index 7d0280ad1..582738576 100644
--- a/daffodil-test/src/test/resources/org/apache/daffodil/usertests/SepTests.tdml
+++ b/daffodil-test/src/test/resources/org/apache/daffodil/usertests/SepTests.tdml
@@ -44,7 +44,8 @@
       ref="ex:GeneralFormat"
       representation="text"
       lengthKind="delimited"
-      separatorPosition="infix"/>
+      separatorPosition="infix"
+      emptyElementParsePolicy="treatAsEmpty"/>
 
     <!-- baseline for DAFFODIL-2498. Works. -->
     <xs:element name="file1">
@@ -139,7 +140,8 @@
       ref="ex:GeneralFormat"
       representation="text"
       lengthKind="delimited"
-      separatorPosition="infix"/>
+      separatorPosition="infix"
+      emptyElementParsePolicy="treatAsEmpty"/>
 
     <!-- DAFFODIL-2217
       These additional tests give another case where trailingEmptyStrict should be causing a
@@ -193,7 +195,8 @@
       ref="ex:GeneralFormat"
       representation="text"
       lengthKind="delimited"
-      separatorPosition="infix"/>
+      separatorPosition="infix"
+      emptyElementParsePolicy="treatAsEmpty"/>
 
     <xs:element name="file1">
       <xs:complexType>
@@ -295,10 +298,10 @@
             representation="text"
             lengthKind="delimited"
             separatorPosition="infix"
-            dfdlx:emptyElementParsePolicy="treatAsMissing"/>
+            emptyElementParsePolicy="treatAsAbsent"/>
 
     <!--
-    treatAsMissing should have no effect here, because everything is optional. (deprecated)
+    treatAsAbsent should have no effect here, because everything is optional.
     -->
     <xs:element name="file1">
       <xs:complexType>
@@ -313,7 +316,7 @@
 
     <!-- Same, but has minOccurs=maxOccurs for the arrays.
      That makes all array elements "required"
-     treatAsMissing causes this to fail. Required empty non-defaultable is an error in that case. (deprecated)
+     treatAsAbsent causes this to fail. Required empty non-defaultable is an error in that case.
      -->
     <xs:element name="file2">
       <xs:complexType>
@@ -350,10 +353,6 @@
   <tdml:parserTestCase name="test_sep_ssp_never_4_daffodil" root="file2" model="s4"
                        implementations="daffodil">
     <tdml:document>madonna,,,,,,,,,</tdml:document>
-    <tdml:warnings>
-      <tdml:warning>emptyElementParsePolicy is deprecated</tdml:warning>
-      <tdml:warning>Use dfdl:emptyElementParsePolicy</tdml:warning>
-    </tdml:warnings>
     <tdml:errors>
       <tdml:error>Parse Error</tdml:error>
       <tdml:error>Empty element not allowed</tdml:error>
@@ -361,7 +360,7 @@
     </tdml:errors>
   </tdml:parserTestCase>
 
-  <tdml:parserTestCase name="test_treatAsMissing_occursIndex" root="file3" model="s4"
+  <tdml:parserTestCase name="test_treatAsAbsent_occursIndex" root="file3" model="s4"
                        implementations="daffodil">
     <tdml:document>1,2,,3,4,,,5,,6</tdml:document>
     <tdml:infoset>
diff --git a/daffodil-test/src/test/scala/org/apache/daffodil/section05/simple_types/TestSimpleTypes.scala b/daffodil-test/src/test/scala/org/apache/daffodil/section05/simple_types/TestSimpleTypes.scala
index a74e2ce1b..e9b8ce259 100644
--- a/daffodil-test/src/test/scala/org/apache/daffodil/section05/simple_types/TestSimpleTypes.scala
+++ b/daffodil-test/src/test/scala/org/apache/daffodil/section05/simple_types/TestSimpleTypes.scala
@@ -410,8 +410,6 @@ class TestSimpleTypes {
   @Test def test_Int01(): Unit = { runner.runOneTest("Int01") }
   @Test def test_int_error(): Unit = { runner.runOneTest("int_error") }
 
-  // Test warning_exercise moved to scala-debug until warnings are implemented.
-
   @Test def test_UnsignedNumbers1(): Unit = { runner.runOneTest("UnsignedNumbers1") }
   @Test def test_unsignedLong_01(): Unit = { runner.runOneTest("unsignedLong_01") }
   @Test def test_unsignedLong_02(): Unit = { runner.runOneTest("unsignedLong_02") }
diff --git a/daffodil-test/src/test/scala/org/apache/daffodil/usertests/TestSepTests.scala b/daffodil-test/src/test/scala/org/apache/daffodil/usertests/TestSepTests.scala
index 2453e6799..69b1cd166 100644
--- a/daffodil-test/src/test/scala/org/apache/daffodil/usertests/TestSepTests.scala
+++ b/daffodil-test/src/test/scala/org/apache/daffodil/usertests/TestSepTests.scala
@@ -60,8 +60,8 @@ class TestSepTests {
   @Test def test_sep_ssp_never_7(): Unit = { runner.runOneTest("test_sep_ssp_never_7") }
 
   // DAFFODIL-2791
-  @Test def test_treatAsMissing_occursIndex(): Unit = {
-    runner.runOneTest("test_treatAsMissing_occursIndex")
+  @Test def test_treatAsAbsent_occursIndex(): Unit = {
+    runner.runOneTest("test_treatAsAbsent_occursIndex")
   }
 
 }