MicrosoftExcelInjector example error [message #780875] |
Thu, 19 January 2012 18:50 |
Sangeeta Tripathy Messages: 16 Registered: December 2011 |
Junior Member |
|
|
I am trying to run the MicrosoftExcelInjector ATL file from a Java program that uses the AM3 XML Injector to inject the source XML file and then uses the ATL to transform from XML Ecore to XMI.
But I get an error saying :
The value of type class java.lang.Class must be of type 'class java.lang.Integer'
at the line:
rule Column {
from
ec : XML!Element (
ec.name = 'Column'
)
to
col : SpreadsheetMLSimplified!Column (
index <- ec.getOptIntAttrValue('ss:Index'),
hidden <- ec.getOptBoolAttrValue('ss:Hidden'),
span <- ec.getOptIntAttrValue('ss:Span'),
autoFitWidth <- ec.getOptBoolAttrValue('ss:AutoFitWidth'),
width <- ec.getOptRealAttrValue('ss:Width')
)
}
What could be the problem?
I am trying this example,as I am getting a problem with repeating XML elements in the input XML using XML injection. Only the first XML element is transformed by the XML injector. Please could someone guide me on this.
|
|
|
Powered by
FUDForum. Page generated in 0.02144 seconds