DocBook: Create HTML files for Eclipse

skays

New Member
I have never used DocBook before and I am trying to generate Help files for Eclipse. Below are the steps I have taken to set everything up,[*]Created a General Eclipse project[*]Added DocBook V4.5 in folder docbook-xml-4.5[*]Added DocBook stylsheets version 1.78 in folder docbook-xsl-1.78.0[*]Created an XML file which is based of the docbookx.dtd file in src folderI added some basic code to the myDocbook.xml,\[code\]<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "../docbook-xml-4.5/docbookx.dtd" ><book><title>My Example Book</title> <titleabbrev>Example</titleabbrev> <preface id="preface1"> <title>Required Preface</title> <para>You will like my book (I think).</para> </preface> <chapter id="chapter1"> <title>Your First Chapter</title> <para>You must include at least one chapter in your book.</para> <para>Here is another paragraph.</para> </chapter></book>\[/code\]I created an XSL Transformation launch configuration, where I selected the eclipse3.xsl stylesheet. I also made sure I selected the Xalan processor in the Processors tab of the Launch config.When I run this, I get the following output in the console,\[code\]23:49:57,637 INFO [main] Main - javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl23:49:57,638 INFO [main] Main - java.endorsed.dirs=D:\Workspaces\HelpTutorial\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\endorsed23:49:57,641 INFO [main] Main - launchFile: D:\Workspaces\HelpTutorial\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml23:49:59,895 INFO [main] JAXPSAXProcessorInvoker - Transforming...file:/D:/Workspaces/HelpTutorial/DocBookTest/docbook-xsl-1.78.0/html/chunker.xsl; Line #111; Column #18; Writing pr01.html for preface(preface1)file:/D:/Workspaces/HelpTutorial/DocBookTest/docbook-xsl-1.78.0/html/chunker.xsl; Line #111; Column #18; Writing ch01.html for chapter(chapter1)file:/D:/Workspaces/HelpTutorial/DocBookTest/docbook-xsl-1.78.0/html/chunker.xsl; Line #111; Column #18; Writing index.html for bookfile:/D:/Workspaces/HelpTutorial/DocBookTest/docbook-xsl-1.78.0/html/chunker.xsl; Line #111; Column #18; Writing toc.xmlfile:/D:/Workspaces/HelpTutorial/DocBookTest/docbook-xsl-1.78.0/html/chunker.xsl; Line #111; Column #18; Writing META-INF/MANIFEST.MFfile:/D:/Workspaces/HelpTutorial/DocBookTest/docbook-xsl-1.78.0/html/chunker.xsl; Line #111; Column #18; Writing plugin.xmlfile:/D:/Workspaces/HelpTutorial/DocBookTest/docbook-xsl-1.78.0/html/chunker.xsl; Line #111; Column #18; Writing index.xml23:50:00,664 INFO [main] JAXPSAXProcessorInvoker - Done.\[/code\]All the lines starting with file are red in colour and although it says Writing file.ext, no files are written anywhere and I also have read/write access to these directories.Does anyone have any ideas why this might be happening?Edit:Some additional information. I used a an Ant Build file to do the same thing and I got a more descriptive error,\[code\][xsl.xinclude] Warning: The encoding 'UTF-8' is not supported by the Java runtime.[xsl.xinclude] Warning: encoding "UTF-8" not supported, using UTF-8\[/code\]and \[code\][xslt] Warning: The encoding 'ISO-8859-1' is not supported by the Java runtime.[xslt] Warning: encoding "ISO-8859-1" not supported, using UTF-8\[/code\]for each of the files that come in red in the error above.
 
Back
Top