1XML2ODF(1) User commands XML2ODF(1)
2
3
4
6 xml2odf - Create ODF package from OpenDocument in XML form
7
9 xml2odf [-o outputfile] [-s] [inputfile]
10
12 OpenDocument can be a complete office document in a single XML file.
13 The script will take such a document and create a package. This is
14 mainly useful as a postprocesser of a program producing XML, such as a
15 stylesheet.
16
17 “Inputfile” is assumed to be an OpenDocument file in XML form. If there
18 is no inputfile, the program will read from standard input. The flag -s
19 adds correct suffix to the filename according to what mime type is
20 found in the XML file, in cause you don´t know already what document
21 type you are packaging.
22
23 If output file is not specified output will be to standard out.
24
25 Section 2.1.1 of Open Document Format for Office Applications says that
26 the [content.xml] file contains the document content, along with the
27 automatic styles needed for the document content. The [styles.xml] file
28 contains all the named styles of a document, along with the automatic
29 styles needed for the named styles. The application doesn´t know which
30 automatic style is needed for what, so it puts the same set of
31 automatic styles into both files.
32
33 One could assume that the inverse operation would be easier, but
34 OpenOffice.org is quite happy to use the same names for two different
35 automatic styles. For instance, a style used inside <style:footer> can
36 have the same name as one used inside <office:text> but be a different
37 paragraph style. This is reported as bug #90494
38 (http://www.openoffice.org/issues/show_bug.cgi?id=90494)
39
41 xml2odf -o testdocument -s xml-file
42
44 odftools(1), odf2xml(1)
45
47 Doesn´t handle external data -- images and such.
48
49 The library used for the parsing of XML expands empty elements from
50 <element/> to <element></element>. It should not have an effect on the
51 document parsing.
52
54 Søren Roug
55 Original author
56
57
58
59odfpy 03/15/2009 XML2ODF(1)