Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1687

tunable to suppress schema definition warnings

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 2.0.0
    • Front End
    • None

      We need a tunable for suppressing schema definition warnings.

      This might want to be a blanket no-warnings setting, or selective per specific warning.

      The issue is illustrated here. This comes from the NACHA schema. This schema works in both Daffodil and in IBM DFDL, but produces this flock of warnings from Daffodil's schema compiler. For portability reasons we don't want to modify the DFDL schema, so we want a way to say these warnings are ok, and suppress them.

      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}CCDEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 134 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 138 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 142 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 146 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 150 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 133 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}PPDEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 169 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 173 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 177 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 181 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 185 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 168 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}ATXEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 262 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 266 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 261 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}ACKEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 239 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 243 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 238 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}CTXEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 204 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 208 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 212 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 216 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 220 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 203 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}CCDEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 134 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 138 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 142 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 146 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 150 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 133 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}PPDEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 169 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 173 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 177 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 181 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 185 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 168 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}ATXEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 262 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 266 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 261 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}ACKEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 239 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 243 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 238 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}CTXEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 204 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 208 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 212 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 216 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 220 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 203 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}CCDEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 134 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 138 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 142 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 146 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 150 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 133 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}PPDEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 169 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 173 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[3] at Location line 177 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[4] at Location line 181 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[5] at Location line 185 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 168 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}ATXEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 262 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 266 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 261 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      Schema Definition Warning: Multiple choice branches are associated with the end of element {ach:2013}ACKEntry.
      Note that elements with dfdl:outputValueCalc cannot be used to distinguish choice branches.
      The offending choice branches are:
      sequence[1] at Location line 239 column 20 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      sequence[2] at Location line 243 column 18 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd
      The first branch will be used during unparsing when an infoset ambiguity exists.
      Schema context: choice Location line 238 column 16 in file:/home/mbeckerle/Documents/dataiti/git/DFDLSchemas/NACHA/2013/nacha_file.xsd

              slawrence Steve Lawrence
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: