You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Benoit Cerrina <be...@writeme.com> on 2000/10/29 19:42:37 UTC

probleme with stylesheet variables

Hi, 
I believe I came across a bug in the way xalanJ1 is handling stylesheet variable.
I'm using version 1.2D02 since the 1.2 has a bug with stylesheet variables computed from other previously defined variables (by the way I've noticed this bug and seen it reported either in xalan-dev or xsl-list but never so anything else about it in this list, is there someone looking into it?).

Anyway attached is a stylesheet exhibiting my bug:
I run it on a file (any will do it doesn't do anything to the input it is really just there to exhibit this bug in the simplest possible way).
I get the following output:

========= Parsing file:D:/WWW/xsl/varPb.xsl ==========
Parse of file:D:/WWW/xsl/varPb.xsl took 691 milliseconds
========= Parsing file:D:/xalan_1_2D02/build.xml ==========
Parse of file:D:/xalan_1_2D02/build.xml took 200 milliseconds
=============================
Transforming...
XSL Error: pattern = '$toto'
VariableReference given for variable out of context or without definition!  Name = toto, source tree
 node: #document
Xalan: was not successful.
XSLProcessor: done


Is there something wrong with my stylesheet or is it a bug.
Benoit