XMLMill - convert xml to pdf with java. Generate PDF from xml/xsl.

XMLMill Samples Guide

Version: 3.00 Date: January 4th, 2008
This tutorial is opened in a separate window in order to maximize the legibility of this tutorial.
To return to XMLMill, close this browser window

This page as PDFPrinter friendly pageThis guide (!) as PDF

Consulting the.mill/.xml/.xsl examples

Overview

In order to generate the pdf documents based on the examples you need to start XMLMill in interactive mode.

Please visit chapter 7 XMLMill Interactive in the userguide.pdf document to know how to use XMLMill in interactive mode.

After having started XMLMill successfully you'll see following screen:

images/gui-main.jpg
Select to enlarge

  • It is always worthwhile to have XMLMill InterActive at your fingertips during your project, as this way you can easily test the stylesheets you develop before moving them into production.

Directory: samples/docs

This directory contains the rnotes*.* files used to generate the release notes document. Based on a simplified variant of the 'docbook' dtd (check the rnotes.dtd), the PDF document is generated.

To generate the release notes document based on the rnotes*.* example do as follows:

  1. Start XMLMill in interactive mode
  2. Select the Open... button to select the rnotes*.xml file.
  3. Select the Log... button to select a directory where the .log file is written.
  4. Select the XSL... button to select the rnotes*.xsl file.
  5. Select the Convert... button to start the generation process.

After the generation has finished the content of the log-file is displayed:

images/gui-log.jpg
Select to enlarge

Directory: samples/mill

To generate the .pdf documents based on the .mill examples do as follows:

  1. Start XMLMill in interactive mode
  2. Select the Open... button to select all .mill files.
  3. Select the Log... button to select a directory where the .log file is written.
  4. Select the Convert... button to start the generation process.

During generation the progess bar will indicate how many files have already been processed:

images/gui-progress.jpg
Select to enlarge

After the generation has finished the content of the log-file is displayed:

images/gui-log.jpg
Select to enlarge

  • To know all elements/attributes valid in the ml: namespace please visit the dtdguide contained in the docs directory in the distribution.

Directory: samples/volume

These examples show you how XMLMill can be used to generate 'high' volume documents, meaning large documents (+1000 pages). Please consult chapter 8 XMLMill Batch and 17 Volume testing in the userguide.pdf document for more information.

To generate the .pdf documents do as follows:

  1. Start XMLMill in interactive mode
  2. Select the Open... button to select the .xml files.
  3. Select the Log... button to select a directory where the .log file is written.
  4. Select the XSL... button to select an *.xsl file.
  5. Select the Log menu and subsequently check the DEBUG checkbox.
  6. Select the Convert... button to start the generation process.
  • During the convertion check the log file regularly to see how many records are processed.

Directory: samples/xmlxsl

The .xsl examples are located in the samples/xmlxsl/ directory and show you how to use an xsl stylesheet to transform a xml document to the ml: namespace.

To generate the .pdf documents based on the .xml/.xsl examples do as follows:

  1. Start XMLMill in interactive mode
  2. Select the Open... button to select all .xml files.
  3. Select the Log... button to select a directory where the .log file is written.
  4. Select the Convert... button to start the generation process.

During generation the progess bar will indicate how many files have already been processed:

images/gui-progress.jpg
Select to enlarge

After the generation has finished the content of the log-file is displayed:

images/gui-log.jpg
Select to enlarge

  • All .xml files refer to their corresponding .xsl file so there is no need to select the XSL button.
  • To know all elements/attributes valid in the ml: namespace please visit the dtdguide contained in the docs directory in the distribution.
Copyright © 2001 - 2004. All rights reserved. XMLMill and XMLMill logo are trademarks of Pecunia Data Systems, bvba.
Powered by Apache CocoonPowered by XMLMill