mkwan 2002/11/13 13:39:21
Modified: java/src/org/apache/xpath/functions FuncExtFunction.java
Log:
For bugzilla 14236. Pass the XPath extension function object to the
extension provider.
Revision Changes Path
1.19 +11 -4
xml-xalan/java/src/org/apache/xpath/functions/FuncExtFunction.java
Index: FuncExtFunction.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xpath/functions/FuncExtFunction.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- FuncExtFunction.java 3 Oct 2002 15:42:18 -0000 1.18
+++ FuncExtFunction.java 13 Nov 2002 21:39:21 -0000 1.19
@@ -65,8 +65,6 @@
import org.apache.xpath.XPathVisitor;
import org.apache.xpath.ExtensionsProvider;
import org.apache.xpath.objects.*;
-import org.apache.xalan.transformer.TransformerImpl;
-import org.apache.xalan.extensions.ExtensionsTable;
import org.apache.xml.dtm.DTMIterator;
//import org.w3c.dom.Node;
@@ -160,6 +158,16 @@
{
return m_extensionName;
}
+
+ /**
+ * Return the method key of the extension function.
+ *
+ * @return The method key of the extension function.
+ */
+ public Object getMethodKey()
+ {
+ return m_methodKey;
+ }
/**
* Return the nth argument passed to the extension function.
@@ -230,8 +238,7 @@
}
//dml
ExtensionsProvider extProvider =
(ExtensionsProvider)xctxt.getOwnerObject();
- Object val = extProvider.extFunction(m_namespace, m_extensionName,
- argVec, m_methodKey);
+ Object val = extProvider.extFunction(this, argVec);
if (null != val)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]