You are here:   » Home » Documentation » Details » How-To » Import/Export/XML » XML-Export

XML-Export Interface

The generic XML export file is transformed to the desired export format through a filter process at server side. The filter primarily strings together XSL transformations but can integrate other processors (e.g. RegExp).

Zoom (18KB)

Through the XML interface export to any kind of formats per XSL transformation is possible.

Configuration

Add a file object in the folder /content/acl_xsl. As title state the title of the export format and as file the XSL transformation that processes the XML-export file of ZMS. After insertion of the file object add a characteristic "type" of type "string" with the value "export" in the tabulator "Properties". After insertion of the file object add the following characteristic in tabulator "Properties":

  • type[string]=export_xml|export_xhtml
    Register stylesheet for the export interface
    NOTE: With export_xml the tree is exported according to the ZMS DTD, with export_xhtml a printversion in XHTML-format is generated. The XHTML-file then can be transformed further e.g. with an XHTML2FO-Stylesheet (e.g. Antenna House Stylesheet Tutorial) for a PDF-export with Formatting Objects (FOP).
  • file_ext[string]
    File name extension of the file from XSL-transformation (e.g. pdf for PDF-files, html for HTML-files)
  • secnd_cmd[string] (optional)
    Command line for secondary transformation process with placeholder {in} for input and {out} for output file
  • secnd_file_ext[string] (optional)
    File name extension of the file from secondary transformation process (e.g. pdf for PDF files, html for HTML files)
  • export_content_type[string]
    Mime type of the export file (e.g. application/pdf for PDF files, text/html for HTML files).
    NOTE: If indicated as mime type with application/zip but the file name extension is not "zip", the export file will automatically be packed as ZIP archive.

Example(s)

Example: PDF-Printversion with Formatting Objects Processor (FOP)

  File: xhtml2fo.xsl
  type=export_xhtml
  file_ext=fo
  secnd_file_ext=pdf
  secnd_cmd=$FOP_HOME/fop -fo {in} -pdf {out}
  export_content_type=application/pdf

Example: HTML-Printversion

  File: $ZMS_HOME/conf/xsl/identity.xsl
  type=export_xhtml
  file_ext=html
  export_content_type=text/html

Example: RTF-Printversion with JFOR

  follows...
Print this Document   change language   Sitemap   Contact