You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/04/14 23:08:53 UTC
cvs commit: xml-xalan/c/src/XPath XPathEnvSupport.hpp XPathEnvSupportDefault.cpp XPathEnvSupportDefault.hpp XPathExecutionContext.hpp XPathExecutionContextDefault.cpp XPathExecutionContextDefault.hpp
dbertoni 00/04/14 14:08:53
Modified: c/src/XPath XPathEnvSupport.hpp XPathEnvSupportDefault.cpp
XPathEnvSupportDefault.hpp
XPathExecutionContext.hpp
XPathExecutionContextDefault.cpp
XPathExecutionContextDefault.hpp
Log:
Support for extension elements.
Revision Changes Path
1.6 +13 -1 xml-xalan/c/src/XPath/XPathEnvSupport.hpp
Index: XPathEnvSupport.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathEnvSupport.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XPathEnvSupport.hpp 2000/04/11 14:46:16 1.5
+++ XPathEnvSupport.hpp 2000/04/14 21:08:52 1.6
@@ -193,9 +193,21 @@
getDOMFactory() const = 0;
/**
+ * Determine if an external element is available.
+ *
+ * @param theNamespace namespace for the element
+ * @param extensionName name of extension element
+ * @return whether the given element is available or not
+ */
+ virtual bool
+ elementAvailable(
+ const XalanDOMString& theNamespace,
+ const XalanDOMString& extensionName) const = 0;
+
+ /**
* Determine if an external function is available.
*
- * @param theNamespace namespace for function
+ * @param theNamespace namespace for th function
* @param extensionName name of extension function
* @return whether the given function is available or not
*/
1.7 +10 -0 xml-xalan/c/src/XPath/XPathEnvSupportDefault.cpp
Index: XPathEnvSupportDefault.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathEnvSupportDefault.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XPathEnvSupportDefault.cpp 2000/04/11 14:46:16 1.6
+++ XPathEnvSupportDefault.cpp 2000/04/14 21:08:52 1.7
@@ -201,6 +201,16 @@
bool
+XPathEnvSupportDefault::elementAvailable(
+ const XalanDOMString& /* theNamespace */,
+ const XalanDOMString& /* extensionName */) const
+{
+ return false;
+}
+
+
+
+bool
XPathEnvSupportDefault::functionAvailable(
const XalanDOMString& /* theNamespace */,
const XalanDOMString& /* extensionName */) const
1.7 +5 -1 xml-xalan/c/src/XPath/XPathEnvSupportDefault.hpp
Index: XPathEnvSupportDefault.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathEnvSupportDefault.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XPathEnvSupportDefault.hpp 2000/04/11 14:46:17 1.6
+++ XPathEnvSupportDefault.hpp 2000/04/14 21:08:52 1.7
@@ -120,11 +120,15 @@
getDOMFactory() const;
virtual bool
+ elementAvailable(
+ const XalanDOMString& theNamespace,
+ const XalanDOMString& extensionName) const;
+
+ virtual bool
functionAvailable(
const XalanDOMString& theNamespace,
const XalanDOMString& extensionName) const;
- // $$$ ToDo: How do we implement this?
virtual XObject*
extFunction(
XPathExecutionContext& executionContext,
1.6 +13 -1 xml-xalan/c/src/XPath/XPathExecutionContext.hpp
Index: XPathExecutionContext.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathExecutionContext.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XPathExecutionContext.hpp 2000/04/11 14:46:17 1.5
+++ XPathExecutionContext.hpp 2000/04/14 21:08:52 1.6
@@ -215,9 +215,21 @@
getContextNodeListPosition(const XalanNode& contextNode) const = 0;
/**
+ * Determine if an external element is available.
+ *
+ * @param theNamespace namespace for the element
+ * @param extensionName name of extension element
+ * @return whether the given element is available or not
+ */
+ virtual bool
+ elementAvailable(
+ const XalanDOMString& theNamespace,
+ const XalanDOMString& extensionName) const = 0;
+
+ /**
* Determine if an external function is available.
*
- * @param theNamespace namespace for function
+ * @param theNamespace namespace for the function
* @param extensionName name of extension function
* @return whether the given function is available or not
*/
1.4 +10 -0 xml-xalan/c/src/XPath/XPathExecutionContextDefault.cpp
Index: XPathExecutionContextDefault.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathExecutionContextDefault.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XPathExecutionContextDefault.cpp 2000/04/11 14:46:18 1.3
+++ XPathExecutionContextDefault.cpp 2000/04/14 21:08:52 1.4
@@ -217,6 +217,16 @@
bool
+XPathExecutionContextDefault::elementAvailable(
+ const XalanDOMString& theNamespace,
+ const XalanDOMString& extensionName) const
+{
+ return m_xpathEnvSupport.elementAvailable(theNamespace, extensionName);
+}
+
+
+
+bool
XPathExecutionContextDefault::functionAvailable(
const XalanDOMString& theNamespace,
const XalanDOMString& extensionName) const
1.6 +12 -0 xml-xalan/c/src/XPath/XPathExecutionContextDefault.hpp
Index: XPathExecutionContextDefault.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathExecutionContextDefault.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XPathExecutionContextDefault.hpp 2000/04/11 14:46:18 1.5
+++ XPathExecutionContextDefault.hpp 2000/04/14 21:08:52 1.6
@@ -148,6 +148,18 @@
virtual int
getContextNodeListPosition(const XalanNode& contextNode) const;
+ /**
+ * Determine if an external element is available.
+ *
+ * @param theNamespace namespace for the element
+ * @param extensionName name of extension element
+ * @return whether the given element is available or not
+ */
+ virtual bool
+ elementAvailable(
+ const XalanDOMString& theNamespace,
+ const XalanDOMString& extensionName) const;
+
virtual bool
functionAvailable(
const XalanDOMString& theNamespace,