MavenDocBookXSL

Norman Walsh edited this page Oct 1, 2015 · 1 revision

Maven artifacts containing the XSL Stylesheets.

Description

The namespaced stylesheets (used for docbook 5) can be used with: {{{ net.sf.docbook docbook-xsl 1.75.1 zip ns-resources }}}

The non namespaced stylesheets can be used with: {{{ net.sf.docbook docbook-xsl 1.75.1 zip resources }}}

Both artifacts contain most of the content of the regular docbook releases you can download except that the root directory is '''docbook/''' for ease of version migration. Here is the content of docbook/ of this artifact:

{{{

common eclipse epub fo highlighting html htmlhelp javahelp lib images manpages params profiling roundtrip slides template tests website xhtml xhtml-1_1 2 305 .CatalogManager.properties.example 54 .urilist 143 AUTHORS 578 BUGS 609 catalog.xml 1 960 COPYING 3 375 INSTALL 28 701 install.sh 3 646 Makefile 2 239 NEWS 6 087 NEWS.html 3 790 NEWS.xml 5 809 README 655 338 RELEASE-NOTES.html 1 089 899 RELEASE-NOTES.pdf 287 610 RELEASE-NOTES.txt 481 195 RELEASE-NOTES.xml 679 TODO 4 510 VERSION }}}

Common usage

A common usage of these artifacts is extracting them in a temporary directory, this can be done as the following:

{{{ org.apache.maven.plugins maven-dependency-plugin unpack-shared-resources unpack-dependencies

generate-resources ${project.build.directory}/generated-resources net.sf.docbook docbook-xsl ns-resources true }}}

And use an xslt engine plugin, this can be done as the following:

{{{ org.codehaus.mojo xml-maven-plugin 1.0-beta-2 transform

generate-resources

src/main/docbook/ sample.xml ${project.build.directory}/generated-resources/docbook/html/docbook.xsl .html ${project.build.directory}/docbook draft.mode yes net.sf.docbook docbook-xsl-saxon 1.0.0 }}}

A complete example can be find in the svn at http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/maven/docbook-sample/

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.