Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid ODT after conversion #2379

Closed
wdonne opened this issue May 22, 2016 · 5 comments
Closed

Invalid ODT after conversion #2379

wdonne opened this issue May 22, 2016 · 5 comments
Labels
bug plugin/odt Issue related to ODT plug-in

Comments

@wdonne
Copy link

wdonne commented May 22, 2016

Hello,

If you convert the DITA 1.3 specification source at http://docs.oasis-open.org/dita/dita/v1.3/os/part3-all-inclusive/dita-v1.3-os-part3-all-inclusive-dita.zip to ODT you get an invalid document, which can't be opened with LibreOffice. In fact the content.xml entity in it is not well formed XML.

These are the steps to reproduce it:

  1. Unzip the downloaded file
  2. Go to dita-v1/dita-1.3-specification-learningTraining
  3. Run "dita -i dita-1.3-specification-learningTraining.ditamap -f odt -o "
  4. Open the result in LibreOffice 5.

Best regards,

Werner.

@raducoravu
Copy link
Member

Similar problem here:
#2272

XSLTs for ODT are quite dreadful to trace so I could not propose a fix for it.

@jelovirt jelovirt added bug plugin/odt Issue related to ODT plug-in labels May 23, 2016
@wdonne
Copy link
Author

wdonne commented May 23, 2016

Did you try Saxon? It has good tracing functionality.

@raducoravu
Copy link
Member

Usually an XSLT stylesheet cannot output not wellformed XML. The problem occurs when outputting unescaped text content in the XSLT stylesheet. This is something which is highly avoided but the ODT XSLs do that a lot in order to insert XML elements in some places. It's something basically un maintainable.

@wdonne
Copy link
Author

wdonne commented May 23, 2016

I agree.

@robander
Copy link
Member

robander commented Aug 2, 2018

The ODT transformation type has a lot of issues (as indicated above), and is not regularly maintained; if this issue is still causing problems, it should be re-opened in the ODT repo: https://github.com/dita-ot/org.dita.odt

@robander robander closed this as completed Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug plugin/odt Issue related to ODT plug-in
Projects
None yet
Development

No branches or pull requests

4 participants