eed3si9n / scalaxb

scalaxb is an XML data binding tool for Scala.
http://scalaxb.org/
MIT License
337 stars 154 forks source link

Fails to generate valid binding for XMLSchema.xsd #538

Open pgrandjean opened 4 years ago

pgrandjean commented 4 years ago

I tried to generate the binding for the XSD of XSD: https://www.w3.org/2012/04/XMLSchema.xsd

Unfortunately the generated code does not compile. Example of errors:

[error] /Users/[...]/Development/scalaxb-xsd/target/scala-2.11/src_managed/main/sbt-scalaxb/xsd11/foo/bar/xsd11/XMLSchema.scala:30:12: class OpenAttrs needs to be abstract, since method attributes_= in trait OpenAttrsable of type (value: Map[String,scalaxb.DataRecord[Any]])(implicit evidence: scalaxb.CanWriteXML[Map[String,scalaxb.DataRecord[Any]]])Unit is not defined
[error] case class OpenAttrs(var attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) extends OpenAttrsable
[error]            ^