dbertoni    2003/07/02 16:37:33

  Modified:    c/src/xalanc/XSLT XSLTEngineImpl.cpp
  Log:
  Iterate document fragment through getFirstChild()/getNextSibling() instead of 
through getChildNodes().
  
  Revision  Changes    Path
  1.4       +2 -8      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSLTEngineImpl.cpp        2 Jul 2003 23:13:55 -0000       1.3
  +++ XSLTEngineImpl.cpp        2 Jul 2003 23:37:33 -0000       1.4
  @@ -2464,15 +2464,9 @@
                        bool                                                    
outputTextNodesOnly,
                        const ElemTemplateElement*              styleNode)
   {
  -     const XalanNodeList* const      nl = theTree.getChildNodes();
  -     assert(nl != 0);
  -
  -     const unsigned int                      nChildren = nl->getLength();
  -
  -     for(unsigned int i = 0; i < nChildren; i++)
  +     for(XalanNode* child = theTree.getFirstChild(); child != 0; child = 
child->getNextSibling())
        {
  -             XalanNode*                              pos = nl->item(i);
  -             assert(pos != 0);
  +             XalanNode*      pos = child;
   
                XalanNode::NodeType             posNodeType = 
pos->getNodeType();
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to