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

empty sequence group #55

Closed
eed3si9n opened this Issue Jun 12, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@eed3si9n
Owner

eed3si9n commented Jun 12, 2011

steps

  1. an empty sequence group.

    <xs:group name="baseIdentifier">
        <xs:sequence/>
    </xs:group>
    

problem

trait IpxactBaseIdentifierGroupFormat extends scalaxb.AnyElemNameParser {  
    private val targetNamespace: Option[String] = Some("http://www.spiritconsortium.org/XMLSchema/SPIRIT/1.5")

    def parseBaseIdentifierGroup(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[ipxact.BaseIdentifierSequence] =
      (() ^^ 
        { case  => ipxact.BaseIdentifierSequence() })

    def parseBaseIdentifierGroup(node: scala.xml.Node, stack: List[scalaxb.ElemName], wrap: Boolean): Parser[scalaxb.DataRecord[Any]] =
      (() ^^ 
        { case  => scalaxb.DataRecord(ipxact.BaseIdentifierSequence()) })

    def parsemixedBaseIdentifierGroup(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[Seq[scalaxb.DataRecord[Any]]] =
      (() ^^ 
        { case  => Seq.concat() })
}

expectation

a code that compiles.

@ghost ghost assigned eed3si9n Jun 12, 2011

@eed3si9n eed3si9n closed this in 204839d Jun 13, 2011

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