BF[2862500] TopicExporter TransformerFactory setAttribute error
https://sourceforge.net/tracker/?func=detail&aid=2862500&group_id=176962&atid=879332
This commit is contained in:
parent
86a24d3883
commit
c03e8842eb
|
@ -61,7 +61,9 @@ import org.w3c.dom.Document;
|
||||||
* @author Antonio Cañaveral, e-Evolution
|
* @author Antonio Cañaveral, e-Evolution
|
||||||
* <li>[ 2195051 ] Implementing Message Transaction
|
* <li>[ 2195051 ] Implementing Message Transaction
|
||||||
* <li>http://sourceforge.net/tracker/index.php?func=detail&aid=2195051&group_id=176962&atid=879335
|
* <li>http://sourceforge.net/tracker/index.php?func=detail&aid=2195051&group_id=176962&atid=879335
|
||||||
|
* @author Michael Judd
|
||||||
|
* <li>[ 2862500 ] TopicExporter TransformerFactory setAttribute error
|
||||||
|
* <li>https://sourceforge.net/tracker/?func=detail&aid=2862500&group_id=176962&atid=879332
|
||||||
*/
|
*/
|
||||||
public class TopicExportProcessor implements IExportProcessor {
|
public class TopicExportProcessor implements IExportProcessor {
|
||||||
|
|
||||||
|
@ -123,6 +125,8 @@ public class TopicExportProcessor implements IExportProcessor {
|
||||||
|
|
||||||
// Construct Transformer Factory and Transformer
|
// Construct Transformer Factory and Transformer
|
||||||
TransformerFactory tranFactory = TransformerFactory.newInstance();
|
TransformerFactory tranFactory = TransformerFactory.newInstance();
|
||||||
|
String jVersion = System.getProperty("java.version");
|
||||||
|
if (jVersion.startsWith("1.5.0"))
|
||||||
tranFactory.setAttribute("indent-number", Integer.valueOf(1));
|
tranFactory.setAttribute("indent-number", Integer.valueOf(1));
|
||||||
|
|
||||||
Transformer aTransformer = tranFactory.newTransformer();
|
Transformer aTransformer = tranFactory.newTransformer();
|
||||||
|
|
Loading…
Reference in New Issue