You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Phil IPS <ph...@yahoo.com> on 2004/07/23 10:09:00 UTC

Re: [Bug 30229] - "StylesheetExecutionContext::getVariable(name)" crahes if variable "name" was not found.

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