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 [EMAIL PROTECTED] | 2624 Howe Hall: 1.515.294.4916 http://www.137.org/patrick/ | http://www.vrac.iastate.edu/
