Issue 16951 - After installing Sun Java 1.4.2, I am unable to export valid docbook files anymore.
Summary: After installing Sun Java 1.4.2, I am unable to export valid docbook files an...
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Code
Component: external filters (show other issues)
Version: OOo 1.1 RC
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: jogi
QA Contact: issues@xml
URL:
Keywords:
: 17129 19447 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-07-16 14:11 UTC by jogi
Modified: 2003-10-08 07:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Saved with JVM; 1.4.1_02 (1.14 KB, text/plain)
2003-07-16 14:18 UTC, jogi
no flags Details
Saved with Java 1.4.2 (1.14 KB, text/plain)
2003-07-16 14:19 UTC, jogi
no flags Details
original file by Norman Walsh from sourceforge.net (1.66 KB, text/plain)
2003-07-16 14:20 UTC, jogi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jogi 2003-07-16 14:11:30 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.
Comment 1 jogi 2003-07-16 14:18:59 UTC
Created attachment 7755 [details]
Saved with JVM; 1.4.1_02
Comment 2 jogi 2003-07-16 14:19:35 UTC
Created attachment 7756 [details]
Saved with Java 1.4.2
Comment 3 jogi 2003-07-16 14:20:55 UTC
Created attachment 7757 [details]
original file by Norman Walsh from sourceforge.net
Comment 4 jcleere 2003-07-16 14:51:18 UTC
Same transformation for both.  Broken with Sun Java 1.4.2
May be possible to change the stylesheet for new behaviour.
Comment 5 jcleere 2003-07-16 15:39:01 UTC
Reassigning since DVO has patch.
Comment 6 openoffice 2003-07-16 17:25:16 UTC
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.
Comment 7 openoffice 2003-07-16 17:53:50 UTC
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
Comment 8 openoffice 2003-07-17 17:30:24 UTC
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. :-)
Comment 9 jogi 2003-07-21 11:55:49 UTC
Seen fine in CWS.
Comment 10 jogi 2003-07-21 11:56:46 UTC
CWS fwkrc32
Comment 11 jogi 2003-07-24 07:45:43 UTC
Okay in milestone.
Comment 12 jogi 2003-07-24 07:46:22 UTC
.
Comment 13 jogi 2003-09-15 07:45:34 UTC
*** Issue 19447 has been marked as a duplicate of this issue. ***
Comment 14 jogi 2003-10-08 07:17:13 UTC
*** Issue 17129 has been marked as a duplicate of this issue. ***