Conversion from docbook to PDF or HTML
Posted: Fri May 13, 2011 4:25 pm
Hi,
I have a docbook book manual (600 pages) which I can convert to HTML or PDF using Oxygen. The <book> consist of a a collection of include as follow:
Now I would like to convert this file using a script file which I could run on the command line. I tried:
or
But none of them work.
As Oxygen is able to do the conversion nicely I was wondering is there is a way to see what Oxygen is actually doing to perform the conversion ?
Thanks for any help
Olivier
I have a docbook book manual (600 pages) which I can convert to HTML or PDF using Oxygen. The <book> consist of a a collection of include as follow:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
<info>
<title>ROOT User's Guide</title>
<productname>ROOT, An Object Oriented Data Analysis Framework</productname>
<author><orgname>The ROOT team</orgname></author>
<editor><orgname>The ROOT team</orgname></editor>
<date>June 2011</date>
</info>
<xi:include href="Preface.xml"/>
<xi:include href="Introduction.xml"/>
<xi:include href="GettingStarted.xml"/>
<xi:include href="Histograms.xml"/>
<xi:include href="Graphs.xml"/>
<xi:include href="FittingHistograms.xml"/>
<xi:include href="ALittleC++.xml"/>
<xi:include href="CINT.xml"/>
<xi:include href="ObjectOwnership.xml"/>
<xi:include href="Graphics.xml"/>
<xi:include href="FoldersTasks.xml"/>
<xi:include href="InputOutput.xml"/>
<xi:include href="Trees.xml"/>
<xi:include href="MathLibraries.xml"/>
<xi:include href="LinearAlgebra.xml"/>
<xi:include href="AddingaClass.xml"/>
<xi:include href="CollectionClasses.xml"/>
<xi:include href="PhysicsVectors.xml"/>
<xi:include href="Geometry.xml"/>
<xi:include href="PythonRuby.xml"/>
<xi:include href="TutorialsandTests.xml"/>
<xi:include href="ExampleAnalysis.xml"/>
<xi:include href="Networking.xml"/>
<xi:include href="Threads.xml"/>
<xi:include href="PROOF.xml"/>
<xi:include href="WritingGUI.xml"/>
<xi:include href="ROOTandQt.xml"/>
<xi:include href="HTMLDoc.xml"/>
<xi:include href="InstallandBuild.xml"/>
<index/>
</book>
Code: Select all
set -x
xsltproc \
--html \
--output ROOTUsersGuide.html \
/Users/couet/Desktop/oxygen/frameworks/docbook/xsl/html/docbook.xsl \
ROOTUsersGuide.xml
Code: Select all
set -x
java -jar \
/Users/couet/Desktop/oxygen/lib/saxon.jar \
ROOTUsersGuide.xml \
/Users/couet/Desktop/oxygen/frameworks/docbook/xsl/html/docbook.xsl
As Oxygen is able to do the conversion nicely I was wondering is there is a way to see what Oxygen is actually doing to perform the conversion ?
Thanks for any help
Olivier