Apache OpenOffice (AOO) Bugzilla – Issue 8155
Docbook and XHTML Save As Failure
Last modified: 2013-08-07 14:41:36 UTC
P4 1.6, 512MB, RH8, Java 1.4.1 When saving as Docbook or as XHTML, no errors are given, but the resulting files are 0k.
dvo->aidan: I think this is yours... :-)
aidan->pcompton42 I have tested this with Redhat 6.2, and it worked fine. It will take time to set up a RH8 test env to confirm.
This issue also happens on RH 7.2 and 7.3 I have a nice document setup and try to export it to DocBook and 0 byte file is the result.
The problem you are seeing could be a bug that has recently been fixed. The '&' charactor in the stream is not being escaped which results in the following occuring. 1. FlatXml: The FlatXml stream is written out correctly producing a valid file but the '&' is not replaced with "&". When the file is opened in OpenOffice, the parser is recognises the '&' as an incorrect entity so therefore throws an exception and does not display the Doc. 2. DocBook and XHTML: When saving the Docbook filter takes the OOo xml stream and performs an XSLT translation on it. The result is then parsed, but because the entities have not been declared properly, the filter fails. I will make the corrected jars (XMergeBridge.jar and XFlatXml.jar )available in the XMergeInstall.jar package on http://xml.openoffice.org/xmerge/downloads The same applies to '<' and '>' If you attach the document, I will test it.
I spoke to Sander Vesik <Sander.Vesik@Sun.COM> about this issue and he alerted me to the fact that my using jre-1.3.1 could be the problem (the website suggests 1.3 is the minimum). I've since upgraded to jre-1.4.0 and am able to export successully to docbook xml. Thanks for the good work, I'll try to keep bug reports flowing. I'll test out the new Xmerge packages
Oh, I realize also that the Xmerge webpage clearly states jre-1.4 as a requirement, I was referring to other notes I found about java support in 1.0.1 OO install.
changing component from word processor to xml, xmerges parent group
*** Issue 8038 has been marked as a duplicate of this issue. ***
This issue is in 643c on Windows XP still.
*** Issue 8413 has been marked as a duplicate of this issue. ***
aidan: DocBook no longer uses XMerge, so this problem should have gone away. There is stull a requirement for jre1.4 and greater
verified
closing