You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Michael Beckerle (JIRA)" <ji...@apache.org> on 2019/06/05 19:10:00 UTC

[jira] [Created] (DAFFODIL-2142) DFDL annotation on complex type is silently ignored

Michael Beckerle created DAFFODIL-2142:
------------------------------------------

             Summary: DFDL annotation on complex type is silently ignored
                 Key: DAFFODIL-2142
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2142
             Project: Daffodil
          Issue Type: Bug
          Components: Front End
    Affects Versions: 2.4.0
            Reporter: Michael Beckerle
             Fix For: 2.4.0


If you put an annotation block inside a complex type, it is silently ignored.

E.g.,
{code:java}
 <xsd:element name="ORDCHG">
                <xsd:complexType>
                  <xsd:annotation>
                    <xsd:appinfo source="http://www.ogf.org/dfdl/">
                      <dfdl:assert>
                        {fn:contains(../UNH/S009,'ORDCHG')}
                      </dfdl:assert>
                    </xsd:appinfo>
                  </xsd:annotation>
                  <xsd:sequence>
                ....
{code}
That annotation belongs inside the element, not inside the complex type. But nothing warns you about that, or suggests anything is wrong. it's just ignored.



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