[ 
https://issues.apache.org/jira/browse/DAFFODIL-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Lawrence updated DAFFODIL-80:
-----------------------------------
    Labels:   (was: dev-verify)

Doing a quick grep, I cannot find any SDE's that mention recursive references. 
So I suspect this is still not implemented. I've also created the following 
basic recursive schema, which results in a stack overflow.

{code:xml}
<xs:schema
  xmlns:xs="http://www.w3.org/2001/XMLSchema";
  xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/";>
 
  <xs:include 
schemaLocation="org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd" />

  <xs:annotation>
    <xs:appinfo source="http://www.ogf.org/dfdl/";>
      <dfdl:format ref="GeneralFormat"  />
    </xs:appinfo>
  </xs:annotation>

  <xs:element name="recursive">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="field" type="xs:string" dfdl:lengthKind="explicit" 
dfdl:length="1" />
        <xs:element ref="recursive" minOccurs="0" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

</xs:schema>
{code}

So I believe this is still not done. Removing the dev-verify tag.

> Need to check for type, element, group recursion
> ------------------------------------------------
>
>                 Key: DAFFODIL-80
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-80
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End, General
>            Reporter: Mike Beckerle
>            Assignee: Dave Thompson
>            Priority: Minor
>
> DFDL v1.0 prohibits definition of recursive "types". Recursive schemas can 
> actually be created by way of elements with types, element references, or 
> group references.
> A check needs to be in place to issue an SDE if recursive schema definition 
> is detected.
> (As of creation of this bug, nothing is checking for this. Need to create 
> test cases that plumb recursion through all/many of the various ways it can 
> be created, and be sure the SDE is detected.)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to