XmlSchemeGenerator generates incorrect XSD:
<xs:attribute type="xs:string" version="${version}" /> needs to be changed to <xs:attribute type="xs:string" name="version" />