This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Error with Xalan-J 2.4.0 and DocBook XSL 1.58.1
- From: Patrick Hartling <patrick at vrac dot iastate dot edu>
- To: Bob Stayton <bobs at caldera dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 03 Dec 2002 13:25:44 -0600
- Subject: Re: DOCBOOK-APPS: Error with Xalan-J 2.4.0 and DocBook XSL 1.58.1
- References: <3DECDF39.2020007@vrac.iastate.edu><20021203092102.C20164@caldera.com>
Hmm, it appears that my problem is related to the JDK version rather than
to the stylesheets or the XSLT processor. I was using 1.4.1_01, but if I
use 1.3.1_06 instead, I get no errors (with the 1.58.1 stylesheets and
Xalan-J 2.4.1).
To answer your question, I did not see the aforementioned error with the
1.57.0 stylesheets. It's easier for me to change my $JAVA_HOME
environment variable than it is to change XSLT processors, so I think
I'll go with JDK 1.3.1.
-Patrick
Bob Stayton wrote:
On Tue, Dec 03, 2002 at 10:43:37AM -0600, Patrick Hartling wrote:
I just downloaded version 1.58.1 of the DocBook XSL stylesheets for
testing, and I am getting this error quite a bit using Xalan-J 2.4.0:
file:///home/users/patrick/docbook-xsl-1.58.1/common/gentext.xsl; Line
130; Column 57; XSLT Error (javax.xml.transform.TransformerException):
Variable accessed before it is bound!
If I use Saxon, there is no error (though I have not reviewed the
rendered documents for correctness yet). Before I switch everything over
to Saxon, I want to be sure that this is a problem with Xalan and not the
new stylesheets. I have attached the smallest example I could come up
with that causes the error. Thanks.
I don't get this error when using Xalan-J 2.4.1 (I don't
have 2.4.0 to test).
I can't see why the line in question should produce an
error since the referrer parameter is declared:
<xsl:template match="*" mode="object.xref.template">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="referrer"/>
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'xref'"/>
<xsl:with-param name="name">
<xsl:call-template name="xpath.location"/>
</xsl:with-param>
<xsl:with-param name="purpose" select="$purpose"/>
<xsl:with-param name="xrefstyle" select="$xrefstyle"/>
<xsl:with-param name="referrer" select="$referrer"/> <!-- Line 130 -->
</xsl:call-template>
</xsl:template>
Do you get this same error with the 1.57.0 stylesheets,
which had a very similar template?
--
Patrick L. Hartling | Research Assistant, VRAC
patrick@vrac.iastate.edu | 2624 Howe Hall: 1.515.294.4916
http://www.137.org/patrick/ | http://www.vrac.iastate.edu/