Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is my own solution to the question:</p> <p>The docbook-xsl library with jar packaging (1.74.0) is automatically included in the classpath of the maven-jdocbook-plugin when it runs.</p> <p>The version with zip packaging (1.76.1) is not, and needs to be unzipped manually. I used the maven-dependency-plugin for this:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;unpack-docbook-xsl&lt;/id&gt; &lt;phase&gt;generate-resources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;unpack&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;artifactItems&gt; &lt;artifactItem&gt; &lt;groupId&gt;net.sf.docbook&lt;/groupId&gt; &lt;artifactId&gt;docbook-xsl&lt;/artifactId&gt; &lt;version&gt;1.76.1&lt;/version&gt; &lt;type&gt;zip&lt;/type&gt; &lt;classifier&gt;ns-resources&lt;/classifier&gt; &lt;overWrite&gt;true&lt;/overWrite&gt; &lt;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt; &lt;/artifactItem&gt; &lt;/artifactItems&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>Then I pointed the maven-jdocbook-plugin at the styles sheets in this package:</p> <pre><code>&lt;formats&gt; &lt;format&gt; &lt;formatName&gt;html&lt;/formatName&gt; &lt;stylesheetResource&gt;file:${project.build.directory}/docbook/html/chunk.xsl&lt;/stylesheetResource&gt; &lt;finalName&gt;index.html&lt;/finalName&gt; &lt;/format&gt; &lt;format&gt; &lt;formatName&gt;pdf&lt;/formatName&gt; &lt;stylesheetResource&gt;file:${project.build.directory}/docbook/fo/docbook.xsl&lt;/stylesheetResource&gt; &lt;finalName&gt;${project.artifactId}-${project.version}.pdf&lt;/finalName&gt; &lt;/format&gt; &lt;format&gt; &lt;formatName&gt;html_single&lt;/formatName&gt; &lt;stylesheetResource&gt;file:${project.build.directory}/docbook/html/docbook.xsl&lt;/stylesheetResource&gt; &lt;finalName&gt;index.html&lt;/finalName&gt; &lt;/format&gt; &lt;/formats&gt; </code></pre> <p>I'd welcome any suggestions for short cuts to this process.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload