Community
Participate
Working Groups
Build Identifier: S201103231016 - (Acceleo 3.1.0M6a) I implemented a Acceleo template for processing xml files. I defined a ecore model based on the xsd of the xml file. Even the other stuff was implemented ( ContentTypeToFactoryMap, ExtensionToFactoryMap, PackageRegistry-put ). If I apply a small template on the xml file (Acceleo Plugin Application), it works, iff the Acceleo Compiler options for the resource kind are defined as XMI. It fails if the options are defined as binary. The issue seems to be in findTemplate of the AcceleoService, in the case if the template is stored in XMI a template will we found with generateElement(ExportType), if it is stored binary a template will be found with generateElement(null). Reproducible: Always Steps to Reproduce: 1.) Define a xml file 2.) Extract xsd and add targetNamespace="xxx" xmlns:yyy="xxx" 3.) Generate genmodel from xsd 4.) Generate model code 5.) define contenttype factory and other things required but Acceleo to find the Factory 6.) Generate a small template in Acceleo 7.) Switch the Acceleo compiler options to XMI 8.) Run the template -> everthing works fine 9.) Switch the Acceleo compiler options to binary 10.) RUn the template -> nothing happens
TRied to reproduce it, with another example. But everthing worked as expected.