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...@apache.org on 2001/01/08 19:23:27 UTC
cvs commit: xml-xalan/c/src/XercesParserLiaison XercesDOMSupport.cpp XercesDOMSupport.hpp
dbertoni 01/01/08 10:23:27
Modified: c/src/XercesParserLiaison XercesDOMSupport.cpp
XercesDOMSupport.hpp
Log:
Implemented new functionality required by DOMSupport.
Revision Changes Path
1.6 +15 -2 xml-xalan/c/src/XercesParserLiaison/XercesDOMSupport.cpp
Index: XercesDOMSupport.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesDOMSupport.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XercesDOMSupport.cpp 2000/12/30 17:56:19 1.5
+++ XercesDOMSupport.cpp 2001/01/08 18:23:27 1.6
@@ -96,9 +96,12 @@
const XalanDOMString&
-XercesDOMSupport::getNamespaceOfNode(const XalanNode& theNode) const
+XercesDOMSupport::getNamespaceForPrefix(
+ const XalanDOMString& prefix,
+ const XalanElement& namespaceContext) const
{
- return theNode.getNamespaceURI();
+ return DOMServices::getNamespaceForPrefix(prefix,
+ namespaceContext);
}
@@ -109,4 +112,14 @@
const XalanDocument& theDocument) const
{
return m_domSupportDefault.getUnparsedEntityURI(theName, theDocument);
+}
+
+
+
+bool
+XercesDOMSupport::isNodeAfter(
+ const XalanNode& node1,
+ const XalanNode& node2) const
+{
+ return DOMServices::isNodeAfter(node1, node2);
}
1.5 +8 -7 xml-xalan/c/src/XercesParserLiaison/XercesDOMSupport.hpp
Index: XercesDOMSupport.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesDOMSupport.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XercesDOMSupport.hpp 2000/12/30 17:56:19 1.4
+++ XercesDOMSupport.hpp 2001/01/08 18:23:27 1.5
@@ -85,19 +85,20 @@
// These interfaces are inherited from DOMSupport...
- /**
- * Retrieve namespace corresponding to a DOM node
- *
- * @param theNode DOM node whose namespace is queried
- * @return namespace corresponding to 'theNode'
- */
virtual const XalanDOMString&
- getNamespaceOfNode(const XalanNode& theNode) const;
+ getNamespaceForPrefix(
+ const XalanDOMString& prefix,
+ const XalanElement& namespaceContext) const;
virtual const XalanDOMString&
getUnparsedEntityURI(
const XalanDOMString& theName,
const XalanDocument& theDocument) const;
+
+ virtual bool
+ isNodeAfter(
+ const XalanNode& node1,
+ const XalanNode& node2) const;
private: