xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/XSLT StylesheetExecutionContextDefault.cpp
Date Wed, 10 Jul 2002 06:48:45 GMT
dbertoni    2002/07/09 23:48:45

  Modified:    c/src/XSLT StylesheetExecutionContextDefault.cpp
  Log:
  Removed code that was commented out.
  
  Revision  Changes    Path
  1.94      +0 -93     xml-xalan/c/src/XSLT/StylesheetExecutionContextDefault.cpp
  
  Index: StylesheetExecutionContextDefault.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetExecutionContextDefault.cpp,v
  retrieving revision 1.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- StylesheetExecutionContextDefault.cpp	10 Jul 2002 00:43:01 -0000	1.93
  +++ StylesheetExecutionContextDefault.cpp	10 Jul 2002 06:48:45 -0000	1.94
  @@ -960,100 +960,7 @@
   			const XalanNode&			node,
   			const ElemTemplateElement*	styleNode)
   {
  -#if 1
   	m_xsltProcessor->cloneToResultTree(node, m_cloneTextNodesOnly, styleNode);
  -#else
  -	XalanNode::NodeType		posNodeType = node.getNodeType();
  -
  -	if (this->m_cloneTextNodesOnly == true &&
  -		posNodeType != XalanNode::TEXT_NODE)
  -	{
  -		const Locator*		theLocator = 0;
  -		const char* const	theErrorMessage =
  -					"Only text nodes can be copied in this context.  The node is ignored";
  -
  -		if (styleNode != 0)
  -		{
  -			theLocator = styleNode->getLocator();
  -		}
  -
  -		if (theLocator != 0)
  -		{
  -			warn(
  -				theErrorMessage,
  -				&node,
  -				theLocator);
  -		}
  -		else
  -		{
  -			warn(
  -				XalanDOMString(theErrorMessage),
  -				&node,
  -				styleNode);
  -		}
  -	}
  -	else
  -	{
  -		const XalanNode*	pos = &node;
  -
  -		while(pos != 0)
  -		{
  -			if(posNodeType != XalanNode::ATTRIBUTE_NODE)
  -			{
  -				flushPending();
  -			}
  -
  -			cloneToResultTree(
  -							*pos,
  -							posNodeType,
  -							false,
  -							false,
  -							true,
  -							styleNode);
  -
  -			const XalanNode*	nextNode = pos->getFirstChild();
  -
  -			while(nextNode == 0)
  -			{
  -				if(XalanNode::ELEMENT_NODE == posNodeType)
  -				{
  -					endElement(c_wstr(pos->getNodeName()));
  -				}
  -
  -				if(&node == pos)
  -					break;
  -
  -				nextNode = pos->getNextSibling();
  -
  -				if(nextNode == 0)
  -				{
  -					pos = pos->getParentNode();
  -					assert(pos != 0);
  -
  -					posNodeType = pos->getNodeType();
  -
  -					if(&node == pos)
  -					{
  -						if(XalanNode::ELEMENT_NODE == posNodeType)
  -						{
  -							endElement(c_wstr(pos->getNodeName()));
  -						}
  -
  -						nextNode = 0;
  -						break;
  -					}
  -				}
  -			}
  -
  -			pos = nextNode;
  -
  -			if (pos != 0)
  -			{
  -				posNodeType = pos->getNodeType();
  -			}
  -		}
  -	}
  -#endif
   }
   
   
  
  
  

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


Mime
View raw message