#353 html/chunk.xsl producing too big Java-methods

output: HTML
XSL (399)

I'm using the xslt ant-task with XSLTC included in
Suns JDK 1.5.0_06, meaning Xalan-J 2.6.0 and XSLTC 1.4

<xslt basedir="doc/users-guide"


<dtd publicId="-
//OASIS//DTD DocBook XML V4.2//EN"

\docbookx.dtd" />

The Stylesheet gets compiled fine, but if it then
should be loaded there is an error because the
generated class-file is invalid. This is, because the
method "applyTemplate" exceeds the 65535 byte method-
Could the Stylesheets pleases be reworked, so that it
works with XSLTC?


  • Jirka Kosek

    Jirka Kosek - 2006-06-07
    • status: open --> closed
  • Jirka Kosek

    Jirka Kosek - 2006-06-07

    Logged In: YES

    You should report this problem to XSLTC developers. XSLT
    does not impose any size limits on template length.

  • Björn Kautler

    Björn Kautler - 2006-06-07

    Logged In: YES

    They know about the problem. And I know that XSLT says
    nothing about the size limit of a template. The problem is
    the JavaVM-spec which says that 65535 bytes is the maximum
    method-size. And big and complex stylesheets exceed this
    limit after compilation.
    So the DocBook XSL Stylesheets lock out all XSLTC-Users
    because they cant use the Stylesheets. :-( And a reordering
    of the Templates could solve the problem.

  • Björn Kautler

    Björn Kautler - 2006-06-07
    • status: closed --> open
  • Michael(tm) Smith

    • milestone: 447634 -->
    • labels: 321159 -->
  • Michael(tm) Smith

    Logged In: YES

    Not a stylesheets bug.

  • Michael(tm) Smith

    • milestone: --> 447637
    • labels: --> 321159
  • Michael(tm) Smith

    • milestone: 447637 --> 447634
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-07-09
    • priority: 5 --> 3
    • milestone: 447634 --> output: HTML
    • labels: 321159 --> XSL
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-07-09

    Logged In: YES
    Originator: NO

    As Mike points out, this is not a stylesheet bug. Moving to the Feature Request tracker.

    By the way, there is a patch that is supposed to resolve most of the 64KB method size limitation problems: http://osdir.com/ml/text.xml.xalan.cvs/2006-04/msg00007.html.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks