[ 
https://issues.apache.org/jira/browse/DAFFODIL-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897722#comment-17897722
 ] 

Mike Beckerle commented on DAFFODIL-1842:
-----------------------------------------

It appears to be tolerating this because the same property, _with the same 
value_ is expressed on both the referencer and referencee. (This behavior, 
while seemingly benign, may not be allowed. DFDL Spec Section 8.1.4, Rule (4) 
is a bit ambiguous here about the meaning of the word "combine" when combining 
two lists of properties. )

If you remove dfdl:lengthUnits="bits" from element e1 declaration, do you get 
an error due to the default format?

I think you need to move these out of the TDML  file into separate schema 
files. You want the referencing element named "outer" declaration in a separate 
schema file so that it can have its own default format in the mix as well.  I'm 
not sure you can recreate the error situation in a tdml:defineSchema.  It first 
came up in Link16, which would have been all files. 

(Well, I'm not sure it's reproducible at all at this point. The ticket is from 
2017, and the issue may have gotten fixed inadvertently in other changes.)

 

 

> Property scoping bug -  spurious SDE
> ------------------------------------
>
>                 Key: DAFFODIL-1842
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1842
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>            Reporter: Mike Beckerle
>            Priority: Major
>              Labels: reverify
>
> Element references and the elements they reference cannot have the same 
> properties expressed directly on them.
> However, they should be able to override the properties that are inherited 
> from the default properties surrounding the global element decl. 
> But this error message, from the overlap check, is clearly saying it is 
> looking at a SchemaDocument:format annotation, and complaining about overlap 
> with it.
> This is not correct. The overlap check should not be considering the default 
> format of any schema when determining the overlap.
> TODO: create a public test case that reproduces this error. Right now it came 
> up in an FOUO schema that is not publicly available.
> {code}
> edu.illinois.ncsa.daffodil.tdml.TDMLException: Schema Definition Error: 
> Overlapping properties: lengthUnits overlaps between element reference 
> link16:Link16 and {color:#d04437}_+SchemaDocument::format.+_{color} Overlap 
> is not allowed.
> Schema context: ms:Link16 Location line 70 column 5 in 
> file:/home/mbeckerle/FOUO/fouo-schemas/nato-stanag-5516/bin/scala-2.11/test-classes/nato/xsd/link16ed6-daffodil-compliant.xsd
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to