GithubHelp home page GithubHelp logo

dmoonfire / docbook2odf Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 670 KB

Docbook 5 version of docbook2odf

Home Page: http://open.comsultia.com/docbook2odf/

License: GNU General Public License v2.0

XSLT 95.38% Shell 0.46% Perl 4.16%

docbook2odf's People

Contributors

dmoonfire avatar magwas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docbook2odf's Issues

Nested paragraphs in generated document

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.