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?
Logged In: YES
user_id=189932
You should report this problem to XSLTC developers. XSLT
does not impose any size limits on template length.
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.
Logged In: YES
user_id=118135
Not a stylesheets bug.
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.