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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7375

XSLTC function-available(...) fails when it shouldn't





------- Additional Comments From [EMAIL PROTECTED]  2002-03-27 00:33 -------
>From looking at org.apache.xalan.xsltc.compiler.FunctionAvailableCall::translate
(...) it appears to me that function-available(...) only performs a compile-
time check, and the results of this get emmitted - looking at some decompiled 
code would appear to confirm this:

  function-available('xsltcMath:sin') does
  <xsl:if test="not(function-available('xsltcMath:sin'))">*not* </xsl:if>

maps into...

  transletoutputhandler.characters(
    "\nfunction-available('xsltcMath:sin') does ".toCharArray(), 0, 42);
  TransletOutputHandler transletoutputhandler_0_ = transletoutputhandler;
  transletoutputhandler_0_.setEscaping(bool);
  if (!false) {
    boolean bool_1_ = transletoutputhandler.setEscaping(true);
    transletoutputhandler.characters("*not* ".toCharArray(), 0,6);

Reply via email to