Apache OpenOffice (AOO) Bugzilla – Issue 16951
After installing Sun Java 1.4.2, I am unable to export valid docbook files anymore.
Last modified: 2003-10-08 07:17:13 UTC
After installing Sun Java 1.4.2, I am unable to export valid docbook files anymore. Instead of e.g. <sect1> <sect2> ... </sect2> <sect2> ... </sect2> <sect2> ... </sect2> </sect1> i get this: <sect1> <sect2> <sect2> <sect2> </sect2> </sect2> </sect2> </sect1> JSI-> James: Is this a problem of xalan or of the stylesheets? If it's a but of stylesheet(s) and docbook filter will be in 7 RC in, we have to fix it ASAP! Otherwise we have to fix it in that release where the docbookm filter.
Created attachment 7755 [details] Saved with JVM; 1.4.1_02
Created attachment 7756 [details] Saved with Java 1.4.2
Created attachment 7757 [details] original file by Norman Walsh from sourceforge.net
Same transformation for both. Broken with Sun Java 1.4.2 May be possible to change the stylesheet for new behaviour.
Reassigning since DVO has patch.
dvo: Committed fix in CWS fwkrc32; this should make it into OOo 1.1. Changed: filter/source/docbook/docbooktosoffheadings.xsl v1.4.30.1 filter/source/docbook/sofftodocbookheadings.xsl v1.4.34.1 I think the problem is in the affected JDK's XSLT implementation. Apparently they are having trouble with multiple key definitions for the same key name. The original stylesheet had multiple key definitions for a key 'children', which applied to different (but related) elements with different (but related) use-expressions. Apparently, all of the elements used the same use-expression in the end, which caused the problem. I merged the key definitions into one, which circumvents the problem. Also, we now import sect5 elements.
dvo: Apparently this is a known bug in Xalan-J. According to the Java release notes for JDK 1.4.2, it includes a variant of xalan-j 2.4.1. See: http://java.sun.com/j2se/1.4.2/relnotes.html#JAXP_xalan Apparently, the bug in Xalan-J is known, but there is no fix for this. See: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15527
dvo->jsi: Works in fwkrc32 install set. Please do integration test. Please try with JDK 1.4.1 and 1.4.2 to make sure it works in both versions. :-)
Seen fine in CWS.
CWS fwkrc32
Okay in milestone.
.
*** Issue 19447 has been marked as a duplicate of this issue. ***
*** Issue 17129 has been marked as a duplicate of this issue. ***