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

output: HTML
open
nobody
XSL (399)
3
2007-07-09
2006-06-06
No

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"

destdir="${jar.location}/doc/users-guide"

style="C:\Programme\DocBook\XSL\1.69.1\html\chunk.xsl"
includes="users-guide.xml">
<xmlcatalog>
<dtd publicId="-
//OASIS//DTD DocBook XML V4.2//EN"

location="C:\Programme\DocBook\XML\4.2
\docbookx.dtd" />
</xmlcatalog>
</xslt>

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-
size-limit.
Could the Stylesheets pleases be reworked, so that it
works with XSLTC?

Discussion

  • Jirka Kosek

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

    Jirka Kosek - 2006-06-07

    Logged In: YES
    user_id=189932

    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
    user_id=918212

    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
    user_id=118135

    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
    user_id=582041
    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