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

parser for element with substitution group is () #25

Closed
dbolene opened this Issue Jan 24, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@dbolene

dbolene commented Jan 24, 2011

  1. running
scalaxb BusinessScope.xsd -p com.company
  1. causes
> compile
[info] 
[info] == compile ==
[info]   Source analysis: 3 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] /Users/me/Documents/sandboxes/testy/test/src/main/scala/com/company/xmlprotocol.scala:72: not enough arguments for method rep: (p: => DefaultCompanyScopeFormat.this.Parser[T])DefaultCompanyScopeFormat.this.Parser[List[T]].
[error] Unspecified value parameter p.
[error]       rep() ^^
[error]          ^
[error] one error found
[info] == compile ==
[error] Error running compile: Compilation failed
  1. BusinessScope.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:complexType name="BusinessScope">
        <xs:sequence>
            <xs:element name="Scope" type="Scope" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Scope">
        <xs:sequence>
            <xs:group ref="ScopeAttributes"/>
            <xs:element ref="ScopeInformation" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:group name="ScopeAttributes">
        <xs:sequence>
            <xs:element name="Type" type="xs:string"/>
            <xs:element name="InstanceIdentifier" type="xs:string"/>
            <xs:element name="Identifier" type="xs:string" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <xs:element name="ScopeInformation" type="xs:anyType" abstract="true"/>
    <xs:element name="CorrelationInformation" type="CorrelationInformation" substitutionGroup="ScopeInformation"/>
    <xs:complexType name="CorrelationInformation">
        <xs:sequence>
            <xs:element name="RequestingDocumentCreationDateTime" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="RequestingDocumentInstanceIdentifier" type="xs:string" minOccurs="0"/>
            <xs:element name="ExpectedResponseDateTime" type="xs:dateTime" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="BusinessService" type="BusinessService" substitutionGroup="ScopeInformation"/>
    <xs:complexType name="BusinessService">
        <xs:sequence>
            <xs:element name="BusinessServiceName" type="xs:string" minOccurs="0"/>
            <xs:element name="ServiceTransaction" type="ServiceTransaction" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
<xs:complexType name="ServiceTransaction">
        <xs:attribute name="TypeOfServiceTransaction" type="TypeOfServiceTransaction" use="optional"/>
        <xs:attribute name="IsNonRepudiationRequired" type="xs:string"/>
        <xs:attribute name="IsAuthenticationRequired" type="xs:string"/>
        <xs:attribute name="IsNonRepudiationOfReceiptRequired" type="xs:string"/>
        <xs:attribute name="IsIntegrityCheckRequired" type="xs:string"/>
        <xs:attribute name="IsApplicationErrorResponseRequested" type="xs:string"/>
        <xs:attribute name="TimeToAcknowledgeReceipt" type="xs:string"/>
        <xs:attribute name="TimeToAcknowledgeAcceptance" type="xs:string"/>
        <xs:attribute name="TimeToPerform" type="xs:string"/>
        <xs:attribute name="Recurrence" type="xs:string"/>
    </xs:complexType>
    <xs:simpleType name="TypeOfServiceTransaction">
        <xs:restriction base="xs:string">
            <xs:enumeration value="RequestingServiceTransaction"/>
            <xs:enumeration value="RespondingServiceTransaction"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>

-- end --

thanks! david...

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Jan 25, 2011

Owner

There was the problem with substitution group parser generation: a2927e7

Owner

eed3si9n commented Jan 25, 2011

There was the problem with substitution group parser generation: a2927e7

This issue was closed.

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