OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Error with Xalan-J 2.4.0 and DocBook XSL 1.58.1


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?

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC