XML Filter ConceptAuthor: Dr. Frank Hoffmann, 2003/11/10 Since ZMS 2.1 a new configuration interface for free definable transformators ('filters') is available; a filter consists of a string of single steps ("processes') which take over the control of the external converter application.
The following example shows the ZMS filter concept by means of a filter for the export of a ZMS publication as OpenOffice-document.
To write e.g. an OpenOffice-filter you proceed as follows:
For an experienced export it is recommended to regard further details:
PDF generation with HTMLdoc
The command line tool 'HTMLDOC' allows a relative simple but in most cases sufficient conversion of HTML streams to PDF format. The related filter needs two steps only:
Tidy configuration: the UTF-8-Codes from ZMS must be changed to Latin-1 to be correctly transformed by HTMLdoc. add-xml-decl: no doctype: omit enclose-block-text: yes enclose-text: yes input-encoding: utf8 char-encoding: utf8 output-encoding: latin1 drop-font-tags: yes numeric-entities: yes
Installation: HTMLdoc and Tidy must be installed on the system resp. their paths must be known. The XML configuration file below is imported into the configuration menu "filter". The programme paths are adapted in both batch steps "htmldoc" and "tidy".
IMPORTANT NOTE: The paths for the programme calls (e.g. C:\Programme\HTMLDOC\) used in both batch steps must be adapted to the local situation so that the programme call of the ZMS filter will work. htmldoc --book --toctitle "Table of Contents" --header t.l
--size A4 -t pdf13 -f {out.pdf} {in}
tidy -asxml -config {trans} -m {in}
|
Home |
Sitemap |
Printversion |
Top |
Imprint |
pressinfo
© 2001-2008 Hoffmann+Liebenberg GmbH, SNTL Publishing GmbH & Co KG
|
ZMS is a partner project of medvalue.net