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/19 20:13:33 UTC
cvs commit: xml-xalan/c/src/DOMSupport DOMServices.cpp DOMServices.hpp
dbertoni 00/04/19 11:13:33
Modified: c/src/DOMSupport DOMServices.cpp DOMServices.hpp
Log:
DOMServices::getNodeData() no longer strips whitespace nodes.
Revision Changes Path
1.9 +6 -8 xml-xalan/c/src/DOMSupport/DOMServices.cpp
Index: DOMServices.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/DOMSupport/DOMServices.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- DOMServices.cpp 2000/04/18 15:30:29 1.8
+++ DOMServices.cpp 2000/04/19 18:13:33 1.9
@@ -142,9 +142,7 @@
XalanDOMString
-DOMServices::getNodeData(
- const XalanNode& node,
- const WhitespaceSupport& theResolver)
+DOMServices::getNodeData(const XalanNode& node)
{
XalanDOMString data;
@@ -159,8 +157,7 @@
while(child != 0)
{
const XalanDOMString nodeData =
- getNodeData(*child,
- theResolver);
+ getNodeData(*child);
if(0 < length(nodeData))
{
@@ -182,10 +179,11 @@
static_cast<const XalanText&>(node);
#endif
- if(theResolver.isIgnorableWhitespace(theTextNode) == false)
- {
+ // This is commented out because it turns out that it's incorrect...
+// if(theResolver.isIgnorableWhitespace(theTextNode) == false)
+// {
data = theTextNode.getData();
- }
+// }
}
break;
1.9 +1 -4 xml-xalan/c/src/DOMSupport/DOMServices.hpp
Index: DOMServices.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/DOMSupport/DOMServices.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- DOMServices.hpp 2000/04/18 15:30:32 1.8
+++ DOMServices.hpp 2000/04/19 18:13:33 1.9
@@ -145,13 +145,10 @@
* Retrieves data for node
*
* @param node DOM node whose data is to be returned
- * @param theResolver prefix resolver to use
* @return a string representation of the node's data
*/
static XalanDOMString
- getNodeData(
- const XalanNode& node,
- const WhitespaceSupport& theResolver);
+ getNodeData(const XalanNode& node);
/**
* Retrieve local name of node