LibreOffice Module xmerge (master) 1
Classes
Package org.openoffice.xmerge.converter.xml.xslt

Provides the tools for doing the conversion of StarWriter XML to and from supported formats, through the use of an XSLT transformation. More...

Classes

class  ConverterCapabilitiesImpl
 Xslt implementation of ConverterCapabilities for the PluginFactoryImpl. More...
 
class  DocumentDeserializerImpl
 Xslt implementation of org.openoffice.xmerge.DocumentSerializer for the PluginFactoryImpl. More...
 
class  DocumentMergerImpl
 Xslt implementation of DocumentMerger for the PluginFactoryImpl. More...
 
class  DocumentSerializerImpl
 Xslt implementation of org.openoffice.xmerge.DocumentSerializer for the PluginFactoryImpl. More...
 
class  GenericOfficeDocument
 This class is an implementation of OfficeDocument for the generic office format. More...
 
class  PluginFactoryImpl
 Xslt implementation of the PluginFactory. More...
 

Detailed Description

Provides the tools for doing the conversion of StarWriter XML to and from supported formats, through the use of an XSLT transformation.

It follows the org.openoffice.xmerge framework for the conversion process.

This converter does not currently support merge.

XSLT Transformation

The converter makes use of one or more XSLT style sheets, which are used in the DocumentSerializer and DocumentDeserializer, to perform the actual translations. The location of these stylesheets is extracted from the ConverterInfo data structure, and are specified using the optional converter-XSLT-serialize and converter-XSLT-deserialize tags in a plug-ins converter.xml file. Please refer to the SDK document for more information about how to implement a Plug-in Configuration XML File for a specific plug-in. A sample OpenOffice to HTML stylesheet and HTML to OpenOffice stylesheet, has been provided as a sample implementation. The converter also makes use of an XsltPlugin.properties file, which may be edited by the user to provide MIME-TYPE to file extension mappings. This file is used by the getDeviceFileExtension method.

TODO list

  1. Expand XSLT style sheets to support more office/HTML capabilities
  2. Add support for certain character codes, such as & which currently causes the transformer to break.
  3. Change the DocumentDeserializer transformer, so that the DOMResult is serialized using the xalan serializer and create an SxwDocument from the result
See also
org.openoffice.xmerge.util.registry.ConverterInfo