Olabusayo Kilo created DAFFODIL-2934:
----------------------------------------
Summary: Local Warning Suppression Issues
Key: DAFFODIL-2934
URL: https://issues.apache.org/jira/browse/DAFFODIL-2934
Project: Daffodil
Issue Type: Bug
Components: Back End
Affects Versions: 3.9.0
Reporter: Olabusayo Kilo
Here are some of the issues we've noted while trying to use
daf:suppressSchemaDefinitionWarnings
* It silently ignores the property on some global elements (these are treated
as Root type and are element references so don't actually have the property on
them, hence xml.attribute in localSuppressSchemaDefinitionWarnings, fails to
return the property). Workaround is to wrap the element in a parent element
which seems to fix things. Possible Solution would be to add an isRoot check to
localSuppressSchemaDefinitionWarnings and use Root.referencedElement.xml
instead of SchemaComponent.xml and call attributes on that. Example:
hb_fromString in
* For the test, schema_warning_locally_suppressed, the property should be on
the annotation rather than the element "elem"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)