New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross-namespace choice #33

Closed
eed3si9n opened this Issue Mar 5, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@eed3si9n
Owner

eed3si9n commented Mar 5, 2011

steps

  1. compile the following with ipo.xsd:

    <xs:schema targetNamespace="http://www.example.com/xn"
            xmlns="http://www.example.com/xn"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:xn="http://www.example.com/xn"
            xmlns:xipo="http://www.example.com/IPO"
            elementFormDefault="qualified">
    
        <complexType name="Human">
            <sequence>
              <element name="name"   type="xs:string"/>
            </sequence>
        </complexType>
    
        <xs:complexType name="CrossNamespaceChoice">
            <xs:choice>
                <xs:element name="address" type="xipo:USAddress"/>
                <xs:element name="human" type="xn:Human" />
            </xs:choice>
        </xs:complexType>
    </xs:schema>
    

problem

It generates uncompilable code.

  case class CrossNamespaceChoice(crossnamespacechoiceoption: scalaxb.DataRecord[ipo.CrossNamespaceChoiceOption])

expectation

Choices across multiple namespaces generates scalaxb.DataRecord[Any].

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n
Owner

eed3si9n commented Mar 5, 2011

Fixed. fa8d715

This issue was closed.

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