- ByteArrayOutputStream out = new ByteArrayOutputStream();) {
-// Source xsl = new StreamSource(new File("/usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl"));
-// Source xsl = new StreamSource(
-// Files.newBufferedReader(Paths.get("/home/mbaudier/Downloads/docbook-xsl-1.79.2/xhtml/docbook.xsl"),
-// StandardCharsets.US_ASCII),
-// "file:///home/mbaudier/Downloads/docbook-xsl-1.79.2/xhtml/docbook.xsl");
- Source xsl = new StreamSource(
- new File(System.getProperty("user.home") + "/Downloads/docbook-xsl-1.79.2/html/docbook.xsl"));
-// if (docBoookTemplates == null) {
-// try {
-// docBoookTemplates = transformerFactory.newTemplates(xsl);
-// } catch (TransformerConfigurationException e) {
-// throw new ServletException("Cannot instantiate XSL " + xsl, e);
-// }
-// }
-
-// Source xmlInput = new StreamSource(new File("/home/mbaudier/dev/git/gpl/argeo-qa/doc/platform/argeo-platform.dbk.xml"));
-// Source xmlInput = new StreamSource(in);
- Result xmlOutput = new StreamResult(out);
-
-// DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-//// DocumentBuilderFactory factory = new org.apache.xerces.jaxp.DocumentBuilderFactoryImpl();
-// factory.setXIncludeAware(true);
-// factory.setNamespaceAware(true);
- DocumentBuilder docBuilder = factory.newDocumentBuilder();
-// Document doc = docBuilder
-// .parse(new File("/home/mbaudier/dev/git/gpl/argeo-qa/doc/platform/argeo-platform.dbk.xml"));
- Document doc = docBuilder.parse(in);
- Source xmlInput = new DOMSource(doc);