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 2004/04/03 04:26:29 UTC

cvs commit: xml-xalan/c/src/xalanc/XSLT XSLTEngineImpl.cpp

dbertoni    2004/04/02 18:26:29

  Modified:    c/src/xalanc/XSLT XSLTEngineImpl.cpp
  Log:
  More strip/preserve space cleanup.
  
  Revision  Changes    Path
  1.15      +1 -27     xml-xalan/c/src/xalanc/XSLT/XSLTEngineImpl.cpp
  
  Index: XSLTEngineImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XSLT/XSLTEngineImpl.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XSLTEngineImpl.cpp	2 Apr 2004 02:45:34 -0000	1.14
  +++ XSLTEngineImpl.cpp	3 Apr 2004 02:26:29 -0000	1.15
  @@ -2030,12 +2030,11 @@
   
   
   
  -void
  +inline void
   XSLTEngineImpl::cloneToResultTree(
   			const XalanText&	node,
   			bool				overrideStrip)
   {
  -#if 1
   	assert(m_executionContext != 0 && m_stylesheetRoot != 0);
   	assert(node.getParentNode() == 0 ||
   		   node.getParentNode()->getNodeType() != XalanNode::DOCUMENT_NODE);
  @@ -2048,31 +2047,6 @@
   
   	    characters(toCharArray(data), 0, length(data));
       }
  -#else
  -	bool	stripWhiteSpace = false;
  -
  -	const bool	isIgnorableWhitespace = node.isIgnorableWhitespace();
  -
  -	if(stripWhiteSpace == false || isIgnorableWhitespace == false)
  -	{
  -		assert(node.getParentNode() == 0 ||
  -			   node.getParentNode()->getNodeType() != XalanNode::DOCUMENT_NODE);
  -
  -		const XalanDOMString&	data = node.getData();
  -
  -		if(0 != length(data))
  -		{
  -			if(isIgnorableWhitespace == true)
  -			{
  -				ignorableWhitespace(toCharArray(data), length(data));
  -			}
  -			else
  -			{
  -				characters(toCharArray(data), 0, length(data));
  -			}
  -		}
  -	}
  -#endif
   }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org