Skip to content

Support <sequence maxOccurs="unbounded"> in schema grammar generation #93

Description

@ekrich

EXIP hits assertion failure at src/grammarGen/src/genUtils.c:268 when processing schemas with <sequence maxOccurs="unbounded"> containing multiple child elements.

$ ./exipd.exe -xml -schema=ndmxml-4.0.0-master-4.0.xsd.exi,ndmxml-4.0.0-namespace-4.0.xsd.exi,ndmxml-4.0.0-common-4.0.xsd.exi,ndmxml-4.0.0-ndm-4.0.xsd.exi,ndmxml-4.0.0-omm-3.0.xsd.exi ndm-hdr.exi

Found in CCSDS NDM/XML 4.0 (ndmxml-4.0.0-common-4.0.xsd:1737):

<xsd:complexType name="userDefinedType">
   <xsd:sequence maxOccurs="unbounded">
       <xsd:element name="COMMENT" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
       <xsd:element name="USER_DEFINED" type="ndm:userDefinedParameterType" minOccurs="0" maxOccurs="unbounded" />
    </xsd:sequence>
</xsd:complexType>

This is a valid W3C schema pattern (COMMENT* USER_DEFINED*)* but EXIP couldn't process it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions