substitution group parser producing `any` #79

Closed
eed3si9n opened this Issue Sep 2, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@eed3si9n
Owner

eed3si9n commented Sep 2, 2011

originally reported by @jxstanford

steps

  1. compile vcloud API 1.5, containing the following at line 562 of common.xsd:
    <xs:complexType name="ReferencesType">
        <xs:annotation>
            <xs:documentation xml:lang="en">
               This is the container for returned elements in referenceView
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ContainerType">
                <xs:sequence>
                    <xs:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <xs:element name="References" type="ReferencesType" />
    <xs:element name="Reference" type="ReferenceType"/>

problems

  1. the generated parser contains any.

expectations

rep((any(_ => true) ^^ (scalaxb.fromXML[scalaxb.DataRecord[Any]](_, scalaxb.ElemName(node) :: stack))))

@eed3si9n eed3si9n closed this in aef9d89 Sep 2, 2011

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