You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Esteban Gonzalez <eg...@outside.com.ar> on 2002/07/08 21:14:08 UTC

Variable accessed before it is

I have declared a counter variable inside a template like this.

<xsl:template match="vouchers">
                <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                        <xsl:variable name="counter">0</xsl:variable>

compiling it MSXML under XMLSpy works great..

but using xalan throws this exception
    javax.xml.transform.TransformerException: Variable accessed before it is
bound!

Any ideas of how to workaround this problem?

----------------------------------
Esteban González

Departamento de Sistemas
ASSIST-CARD International