How to disable attribute replacement in Jaspersoft Studio editor?


I have been using iReport 5.6.0 to edit my templates.

I have editied them with Jaspersoft Studio, and tried to compile with older JasperReports library but the compiler threw the following exception:

net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 124; cvc-complex-type.3.2.2: Attribute 'hTextAlign' is not allowed to appear in element 'style'.

Also the iReport designer shows the same error when I try to open with it.

I figured out that the Editor of the Jaspersoft Studio silently replaces hAlign attributes with hTextAlign / hImageAlign - which are not recognized by the old compiler.

My Question is: is it possible to configure the editor not to do it?

Thanks, Matt

mateusz.meszaros's picture
Joined: Mar 3 2015 - 8:11am
Last seen: 1 year 7 months ago

1 Answer:


Yes, this is possible. Under Preferences -> Jaspersoft Studio -> Version -> Set it to version 5.6

ernestoo's picture
Joined: Nov 29 2010 - 11:59am
Last seen: 2 years 9 months ago