You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mk...@apache.org on 2002/09/26 19:50:40 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler FunctionAvailableCall.java
mkwan 2002/09/26 10:50:40
Modified: java/src/org/apache/xalan/xsltc/compiler
FunctionAvailableCall.java
Log:
Handle dots in the local part, e.g.
xmlns:ext="http://xml.apache.org/xalan/java/java.lang
function-available('ext:Thread.currentThread') return true.
Revision Changes Path
1.13 +9 -2 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FunctionAvailableCall.java
Index: FunctionAvailableCall.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FunctionAvailableCall.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- FunctionAvailableCall.java 26 Sep 2002 17:02:02 -0000 1.12
+++ FunctionAvailableCall.java 26 Sep 2002 17:50:40 -0000 1.13
@@ -139,7 +139,14 @@
String methodName = null;
int colonIndex = _nameOfFunct.indexOf(":");
if (colonIndex > 0) {
- methodName = _nameOfFunct.substring(colonIndex+1);
+ String functionName = _nameOfFunct.substring(colonIndex+1);
+ int lastDotIndex = functionName.lastIndexOf('.');
+ if (lastDotIndex > 0) {
+ methodName = functionName.substring(lastDotIndex+1);
+ className = className + "." + functionName.substring(0, lastDotIndex);
+ }
+ else
+ methodName = functionName;
}
else
methodName = _nameOfFunct;
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org