OpenSolaris

You are not signed in. Sign in or register.

Documentation Tools


This page is a summary of the tools available for the documentation community. Post new suggestions or comments on this forum: thread

Requirements

  • Use free documentation tools.
  • Can be updated by either vi or emacs.
  • Have standard templates for documentation.

Text Editing and Processing

  • Asciidoc: http://www.methods.co.nz/asciidoc/
    ASCIIdoc is an extensive Python script that takes simple text files and converts them into other formats. By default, it will create an HTML file. Formatting rules for the text file are fairly straight-forward. The Quick-Start Guide is here.

XML Editing Tools and Information

Overview

Books in the Docs Consolidation are formatted as SolBook XML. SolBook is a fully-conforming subset of the DocBook document schema used to describe the content of technical books. Use the Download icon in the upper right of this page to find the Documentation Consolidation source files. Any modifications or additions to these books should also be compliant with the SolBook XML standard.

Any XML authoring tool which is capable of validating against the SolBook XML standard may be used for authoring.

XMLmind Editor

There is an add-on for the XMLmind XML editor which allows SolBook XML documents to be easily created and edited. More information on how to obtain and install this can be found here.

HTML Transformations

Documents in an XML format are great for editing, but for viewing it is best to convert the documents to HTML. You can send your new or updated files to the mailing list and we'll generate HTML with OpenSolaris branding for you, if you prefer. There are also publicly available XSLT stylesheets for converting SolBook XML documents into HTML (and also into PDF and other formats).

To Process the SolBook XML into HTML Using the DocBook XSLT Stylesheets

  1. Download the latest XSLT stylesheets for converting DocBook-compliant XML documents into HTML (and also into PDF and other formats). Detailed instructions for use are here: http://sagehill.net/docbookxsl/index.html.
  2. Unpack the XSLT files and note down the directory where ..html/docbook.xsl is located:
     gzip -d docbook-xsl-1.70.0.tar.gz
     tar xvf docbook-xsl-1.70.0.tar

    The files are expanded into directories.
  3. Process the XML into HTML by running the following command:
    % xsltproc --nonet --xinclude -o mysolbookfile.html docbook/html/docbook.xsl mysolbookfile.xml

    Note: Replace the docbook- directory in the above command with the one noted in the previous step.
    The mysolbookfile.html file appears in the current directory.
A sample style sheet to format the resulting HTML documentation is available for your use.

To Process the SolBook XML Files Into HTML Using the SolBook XSLT Stylesheets

XSLT stylesheets are now available which can transform SolBook 3.5 XML documents into 2 styles of HTML. In addition, they can also be used to convert SolBook 3.5 XML into 3 versions of DocBook XML (v. 4.0, 4.4, and 5.0b).

The easiest way to use these stylesheets is to download and use the SolBookTrans Java tool (see Related Links). It is a very small simple tool for running transformations. It requires Java 1.6 to run. It can be run from the command line or from a simple GUI. Just download the zip file, open it anywhere on your system, and view the README within the zip root for instructions on how to use it.

An upcoming NetBeans plugin for SolBook will also include these same stylesheets. This plugin should be available later in July 2008.

Related Links


A variety of other tools are available for performing these transformations, but note that the DocBook XSLT stylesheets are very large and complex and will not work with all authoring tools.

Validation Using the CLI

Some guidelines for performing validations using the CLI and some suggested alternate tools are provided here.

The process of making sure that a given XML document is compliant with the DTD standard is called validation. Validation is done by using automated tools to compare the contents of the XML document with another file which encodes the structure.

The way most XML tools work is that you open the document you want to validate in the tool, and then use the Validate function of the tool. The validate function will typically identify the errors which made the document invalid.

The xmllint tool (which should be included in OpenSolaris-based OS distributions in /usr/bin) can also be used for validation:

xmllint --valid --noout mysolbookfile.xml
Instructions for using the DocBook stylesheets are here: http://sagehill.net/docbookxsl/index.html.

PDF Tranformations

For information about Docbook and apache FOP, refer to the blog of Ben Rockwood:

http://cuddletech.com/blog/pivot/entry.php?id=509 General information about DocBook XML can be obtained from the following links:

XML Authoring Tools

There are many XML tools available for authoring, validating, and applying stylesheets to XML documents. The following list is a short list of those which meet the following minimum criteria:

  • Must validate the XML document against a DTD or schema
  • Must automatically complete tags
  • Multi-platform capable (typically Java), if you are not on Windows

Some other lists are available here:


Short List of Free or Cheap Multi-platform XML Editors
Tool Name Platform Support Cost Notable Features Missing Features
NetBeans All Java enabled platforms Free - open source
  • Primarly for code editing
  • Tag-completion
  • DTD validation
  • simple XSLT processing
  • No XInclude support
  • Will not process complex (i.e. DocBook) XSLT stylesheets
  • No RelaxNG validation
  • Inconsistent valid tag list when authoring
JEdit All Java enabled platforms Free - open source
  • Primarly for code editing
  • Tag-completion
  • DTD validation
  • Schema validation
  • No XInclude support
  • Will not process complex (i.e. DocBook) XSLT stylesheets
  • No RelaxNG validation
  • No valid tag list when authoring

OpenOffice 8

Not Java, but available on all major platforms Free - open source Not an XML authoring tool, but can be used with another tool which will convert OpenOffice documents into DocBook (see below)  
oXygen All Java enabled platforms

Proprietary
- 30 day trial
- $180 license

  • Tag-completion
  • DTD validation
  • Schema validation
  • RelaxNG validation
  • XInclude support
  • Intuitive authoring views
  • Valid tag list for authoring
  • Built in DocBook functionality
  • Complex XSLT processing
  • Not free
emacs Not Java, but available on Windows, Linux, and Unix free (have not tested) (have not tested)
XML Pro v2 All Java enabled platforms Open source, but still requires a small license fee for commerical use (have not tested) (have not tested)
EditiX All Java enabled platforms

Proprietary
- 30 day trial
- $85 license

(have not tested) (have not tested)
XML objective All Java enabled platforms Proprietary
- 15 day trial
- $40 license
(have not tested) (have not tested)
Exchanger All Java enabled platforms Proprietary
- 30 day trial
- $130 license
(have not tested) (have not tested)