Steve Lawrence created DAFFODIL-2150:
----------------------------------------

             Summary: Excessive emptyElementParsePolicy warnings
                 Key: DAFFODIL-2150
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2150
             Project: Daffodil
          Issue Type: Bug
          Components: Diagnostics
            Reporter: Steve Lawrence


If a schema has a need for the emptyElementParsePolicy property, but it's not 
defined, you end up with a lot of duplicate warnings like:
{quote}
[warning] Schema Definition Warning: Property 'dfdl:emptyElementParsePolicy' is 
required but not defined, using tunable 'treatAsEmpty' by default.
{quote}
This warning is helpful, but it is repeated for what seems like every element 
in the schema, which makes it not very user friendly.

Maybe we should only record the first instance of each WarnID, but add a 
warning that other instances were hidden. And add a tunable flag to enable 
recording of all instances if the user wants it all.

Additinoally or alternatively, we might want to think about not recording 
warnings at all for extensions. They are extensions after all. If someone's 
schema is DFDL v1.0 compliant, there's an argument that we shouldn't output 
warnings for things related to extensions. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to