DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30229

"StylesheetExecutionContext::getVariable(name)" crahes if variable "name" was not 
found.





------- Additional Comments From [EMAIL PROTECTED]  2004-07-22 16:31 -------
I posted the original bug 30229 in the Bugzilla database.

This mail contains a simple sample where the "getVariable()" method is not 
working the way it is
expected to.

As I do not exactly where I have to post, I prefer posting here.
(please tell me if I am wrong and if I should post somewhere else)


The joined files are :

 + the "GetVariable.cpp" source code,
 + the input "GetVariable.xml" and "GetVariable.xsl" files,
 + I stored the build commands in the "build.sh" file.


System infos :

 + Sun compiler :   "CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11"
 + System :         "SunOS msmistral 5.8 Generic_108528-27 sun4u sparc 
SUNW,UltraAX-i2"



Here are the result I get :


1/ "var1" is a defined stylesheet variable.
The content of the variable is correctly output and the program finish 
correctly.

$ GetVariable var1

call getVariable()
getVariable() called
variable = "World !"
end of program



2/ "var2" is undefined so my program should print an error.
Instead of this, it seems that the "printVariable()" method returns in 
the "getVariable()" method
call (the "getVariable() called" message is not printed on the output)

$ GetVariable var2

call getVariable()
end of program


Thanks for having a look and tell me what's happening.


Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to