<?xml version="1.0" encoding="UTF-8"?>
<classpath>
+ <classpathentry exported="true" kind="lib" path="lib/serializer.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/xalan.jar" sourcepath="C:/Users/Administrator/Downloads/xalan-j_2_7_1-src/xalan-j_2_7_1"/>
<classpathentry exported="true" kind="lib" path="lib/js-14.jar" sourcepath="D:/__WORK/chagall/tizenpublic/develop/rhino/src"/>
<classpathentry exported="true" kind="lib" path="lib/nekohtml-1.9.18.jar"/>
<classpathentry exported="true" kind="lib" path="lib/json-simple-1.1.1.jar"/>
<classpathentry kind="lib" path="lib/flute-1.2.8-sources.jar"/>
<classpathentry kind="lib" path="lib/phloc-css-3.5.5.jar" sourcepath="lib/phloc-css-3.5.5-sources.jar"/>
<classpathentry kind="lib" path="lib/phloc-commons-4.0.8.jar"/>
+ <classpathentry kind="lib" path="D:/git/public/web-ui-builder-eplugin/org.tizen.webuibuilder/lib/serializer.jar"/>
+ <classpathentry kind="lib" path="D:/git/public/web-ui-builder-eplugin/org.tizen.webuibuilder/lib/xalan.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
* a writer
*/
public static void writeTo(Element element, Writer writer) {
- TransformerFactory transformerFactory = TransformerFactory.newInstance();
- transformerFactory.setAttribute("indent-number", new Integer(4)); //$NON-NLS-1$
+ TransformerFactory transformerFactory = TransformerFactory.newInstance("org.apache.xalan.processor.TransformerFactoryImpl", null);
+// transformerFactory.setAttribute("indent-number", new Integer(4)); //$NON-NLS-1$
try {
// String xslt =
// "<xsl:stylesheet version='1.0'\n"
// Transformer transformer = transformerFactory.newTransformer(new
// StreamSource(new StringBufferInputStream(xslt)));
Transformer transformer = transformerFactory.newTransformer();
+ transformer.setOutputProperty(OutputKeys.VERSION, "4.0");
+
+ transformer.setOutputProperty(OutputKeys.MEDIA_TYPE, "text/html");
+ transformer.setOutputProperty("{http://xml.apache.org/xalan}content-handler", "org.apache.xml.serializer.ToHTMLStream");
+ transformer.setOutputProperty("{http://xml.apache.org/xalan}entities", "org/apache/xml/serializer/HTMLEntities");
+ transformer.setOutputProperty("{http://xml.apache.org/xalan}use-url-escaping", BuilderConstants.YES);
+ transformer.setOutputProperty("{http://xml.apache.org/xalan}omit-meta-tag", BuilderConstants.YES);
+ transformer.setOutputProperty("{http://xml.apache.org/xalan}indext-amount", "0");
+
transformer.setOutputProperty(OutputKeys.METHOD, BuilderConstants.HTML);
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, BuilderConstants.YES);
- transformer.setOutputProperty(OutputKeys.INDENT, BuilderConstants.YES);
+ transformer.setOutputProperty(OutputKeys.INDENT, BuilderConstants.NO);
DOMSource source = new DOMSource(element);
StreamResult result = new StreamResult(writer);
transformer.transform(source, result);
transformerFactory.newTransformer(new DOMSource(getDescriptorManager()
.getXsltDocument()));
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, BuilderConstants.YES);
- transformer.setOutputProperty(OutputKeys.INDENT, BuilderConstants.NO);
+ transformer.setOutputProperty(OutputKeys.INDENT, BuilderConstants.YES);
transformer.setOutputProperty(OutputKeys.ENCODING, BuilderConstants.ENCODING);
transformer.setOutputProperty(OutputKeys.METHOD, BuilderConstants.HTML);
} catch (TransformerConfigurationException e) {