Package: docbook-xsl Version: 1.72.0.dfsg.1-2 Severity: normal Hi,
consider the production of OOo or WordML output from a docbook book processing: $ xsltproc -o elooo.xml --stringparam wordml.template /usr/share/xml/docbook/stylesheet/nwalsh/roundtrip/template.xml /usr/share/xml/docbook/stylesheet/nwalsh/roundtrip/dbk2ooo.xsl el3.xml $ xsltproc -o elwordml.xml --stringparam wordml.template /usr/share/xml/docbook/stylesheet/nwalsh/roundtrip/template.xml /usr/share/xml/docbook/stylesheet/nwalsh/roundtrip/dbk2wordml.xsl el3.xml $ Using elooo.xml and elwordml.xml in Openoffice.org doesn't work: The former one is imported literally (including XML tags etc.) in the Openoffice Writer text, the latter shows an error. I'm attaching the example input and outputs. Thanks for considering, Roland -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages docbook-xsl depends on: ii xml-core 0.11 XML infrastructure and XML catalog Versions of packages docbook-xsl recommends: ii docbook-xml 4.5-4 standard XML documentation system, ii docbook-xsl-doc-text [do 1.72.0.dfsg.1-1 stylesheets for processing DocBook -- no debconf information
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://nwalsh.com/docbook/xml/4.3/docbook.dtd"> <book lang="en"> <bookinfo> <title>Mytitle</title> <subtitle>Subtitle</subtitle> <author><firstname>Roland</firstname><surname>Stigge</surname></author> </bookinfo> <toc/> <preface> <title>Preface</title> <para> Some Notes </para> </preface> <chapter> <title>Chaptertitle</title> <para> A para ... </para> <sect1><title>Architecture</title> <para> Another para ... </para> </sect1> </chapter> <bibliography> <biblioentry id="alig" xreflabel="ALIG"> <title><ulink url="http://abc.com/content/">A Site</ulink> </title> <copyright> <year>2007</year> <holder>Another Company</holder> </copyright> </biblioentry> </bibliography> <glossary> <glossentry> <glossterm>STH</glossterm> <glossdef> <para> Something </para> </glossdef> </glossentry> </glossary> </book>
<?xml version="1.0"?> <office:document xmlns:office="http://openoffice.org/2000/office" xmlns:style="http://openoffice.org/2000/style" xmlns:text="http://openoffice.org/2000/text" xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:number="http://openoffice.org/2000/datastyle" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:dr3d="http://openoffice.org/2000/dr3d" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="http://openoffice.org/2000/form" xmlns:script="http://openoffice.org/2000/script" office:class="text" office:version="1.0"> <office:script/> <office:font-decls> <style:font-decl style:name="Lucida Grande1" fo:font-family="'Lucida Grande'"/> <style:font-decl style:name="Arial1" fo:font-family="Arial" style:font-pitch="variable"/> <style:font-decl style:name="Hiragino Mincho Pro W3" fo:font-family="'Hiragino Mincho Pro W3'" style:font-pitch="variable"/> <style:font-decl style:name="Lucida Grande" fo:font-family="'Lucida Grande'" style:font-pitch="variable"/> <style:font-decl style:name="Times New Roman" fo:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> <style:font-decl style:name="Arial" fo:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> </office:font-decls> <office:automatic-styles/> <office:body> <text:sequence-decls> <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> <text:sequence-decl text:display-outline-level="0" text:name="Table"/> <text:sequence-decl text:display-outline-level="0" text:name="Text"/> <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> </text:sequence-decls> <text:p text:style-name="book-title"> <text:span text:style-name="">Mytitle</text:span> </text:p> <text:p text:style-name="book-subtitle"> <text:span text:style-name="">Subtitle</text:span> </text:p> <text:p text:style-name="author"> <text:span text:style-name="firstname"> <firstname>Roland</firstname> </text:span> <text:span text:style-name="unknown"> </text:span> <text:span text:style-name="surname"> <surname>Stigge</surname> </text:span> </text:p> <text:p text:style-name="preface-title"> <text:span text:style-name="">Preface</text:span> </text:p> <text:p text:style-name="Normal"> <text:span text:style-name=""/> <text:span text:style-name=""><text:br/> Some Notes</text:span> <text:span text:style-name=""><text:br/> </text:span> </text:p> <text:p text:style-name="chapter-title"> <text:span text:style-name="">Chaptertitle</text:span> </text:p> <text:p text:style-name="Normal"> <text:span text:style-name=""/> <text:span text:style-name=""><text:br/> A para ...</text:span> <text:span text:style-name=""><text:br/> </text:span> </text:p> <text:p text:style-name="sect1-title"> <text:span text:style-name="">Architecture</text:span> </text:p> <text:p text:style-name="Normal"> <text:span text:style-name=""/> <text:span text:style-name=""><text:br/> Another para ...</text:span> <text:span text:style-name=""><text:br/> </text:span> </text:p> <text:p text:style-name="biblioentry-title"/> <text:span text:style-name="">2007</text:span> <text:span text:style-name="">Another Company</text:span> <text:span text:style-name="">STH</text:span> <text:p text:style-name="Normal"> <text:span text:style-name=""/> <text:span text:style-name=""><text:br/> Something</text:span> <text:span text:style-name=""><text:br/> </text:span> </text:p> </office:body> </office:document>