Thanks for all the programming advices concerning my sample.
> The Xalan-C bug is one of documentation. > StylesheetExecutionContext::getVariable() actually throws an exception when > the variable is not found. So, you will need to use a try/catch block if you want to catch situations where the variable is not defined but you want to continue execution. We can consider changing this behavior with the enhancement request you created. I am now catching an "XSLException" when I call "getVariable()" and "getParamVariable()" and it works fine. Phil __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com