dmoonfire / docbook2odf Goto Github PK
View Code? Open in Web Editor NEWDocbook 5 version of docbook2odf
Home Page: http://open.comsultia.com/docbook2odf/
License: GNU General Public License v2.0
Docbook 5 version of docbook2odf
Home Page: http://open.comsultia.com/docbook2odf/
License: GNU General Public License v2.0
When I try to generate a odt document from a simple docbook xml (containing a table) the resulting content.xml file in the odt document is created with nested <text:p>-nodes. The final result is that any text in the table is not interpreted by openoffice/libreoffice properly.
Example:
<text:p text:style-name="Standard"><text:p text:style-name="para-padding">One</text:p></text:p>
If I manually edit the xml-document and remove one of the <text:p>-nodes the document is displayed normally.
Steps to reproduce:
Save the following docbook xml and run it through docbook2odt
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <?asciidoc-toc?> <?asciidoc-numbered?> <article lang="en"> <articleinfo> <title>Title 1</title> </articleinfo> <section id="_title_2"> <title>Title 2</title> <informaltable frame="all" rowsep="1" colsep="1" > <tgroup cols="2"> <colspec colname="col_1" colwidth="0*"/> <colspec colname="col_2" colwidth="99*"/> <tbody> <row> <entry align="left" valign="top"><simpara>One</simpara></entry> <entry align="left" valign="top"><simpara>Two</simpara></entry> </row> <row> <entry align="left" valign="top"><simpara>Three</simpara></entry> <entry align="left" valign="top"><simpara>Four</simpara></entry> </row> </tbody> </tgroup> </informaltable> </section> </article>
The resulting table in the content.xml-file in the odt-document will have nestled <text:p>-nodes and openoffice/libreoffice won't be able to render the cell-contents properly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.