dbertoni    01/01/02 08:19:07

  Modified:    c/src/XSLT StylesheetHandler.cpp
  Log:
  Removed extraneous code.
  
  Revision  Changes    Path
  1.49      +0 -82     xml-xalan/c/src/XSLT/StylesheetHandler.cpp
  
  Index: StylesheetHandler.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetHandler.cpp,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- StylesheetHandler.cpp     2000/12/08 22:20:50     1.48
  +++ StylesheetHandler.cpp     2001/01/02 16:19:03     1.49
  @@ -1373,88 +1373,6 @@
                return;
   
        processText(chars, length);
  -
  -#if 0
  -     if(m_inTemplate)
  -     {
  -             ElemTemplateElement*    parent = m_elemStack.back();
  -
  -             bool                                    preserveSpace = false;
  -             bool                                    disableOutputEscaping = 
false;
  -
  -             if(Constants::ELEMNAME_TEXT == parent->getXSLToken())
  -             {
  -#if defined(XALAN_OLD_STYLE_CASTS)
  -                     disableOutputEscaping = 
((ElemText*)parent)->getDisableOutputEscaping();
  -#else
  -                     disableOutputEscaping = 
static_cast<ElemText*>(parent)->getDisableOutputEscaping();
  -#endif
  -                     parent = m_elemStack[m_elemStack.size()-2];
  -                     preserveSpace = true;
  -             }
  -
  -             const Locator* const    locator = 
m_constructionContext.getLocatorFromStack();
  -
  -             const int                               lineNumber = (0 != 
locator) ? locator->getLineNumber() : 0;
  -             const int                               columnNumber = (0 != 
locator) ? locator->getColumnNumber() : 0;
  -
  -             ElemTextLiteral *elem = new 
ElemTextLiteral(m_constructionContext,
  -                     m_stylesheet,
  -                     lineNumber, columnNumber,
  -                     chars, 0, length, 
  -                     false, preserveSpace, 
  -                     disableOutputEscaping);
  -
  -             const bool isWhite = isXMLWhitespace(chars, 0, length);
  -
  -             if(preserveSpace || (!preserveSpace && !isWhite))
  -             {
  -                     while(!m_whiteSpaceElems.empty())
  -                     {
  -                             
parent->appendChildElem(m_whiteSpaceElems.back());
  -
  -                             m_whiteSpaceElems.pop_back();
  -                     }
  -
  -                     parent->appendChildElem(elem);
  -
  -                     elem = 0;
  -             }
  -             else if(isWhite)
  -             {
  -                     bool                                            
shouldPush = true;
  -
  -                     ElemTemplateElement* const      last = 
parent->getLastChildElem();
  -
  -                     if(0 != last)
  -                     {
  -                             // If it was surrounded by xsl:text, it will 
count as an element.
  -                             bool isPrevCharData =
  -                                     Constants::ELEMNAME_TEXTLITERALRESULT 
== last->getXSLToken();
  -                             bool isLastPoppedXSLText = (m_lastPopped != 0) 
&&
  -                                     (Constants::ELEMNAME_TEXT == 
m_lastPopped->getXSLToken());
  -
  -                             if(isPrevCharData && ! isLastPoppedXSLText)
  -                             {
  -                                     parent->appendChildElem(elem);
  -
  -                                     shouldPush = false;
  -                             }
  -                     }
  -
  -                     if(shouldPush)
  -                             m_whiteSpaceElems.push_back(elem);
  -             }
  -     }
  -     // BEGIN SANJIVA CODE
  -     else if (m_inLXSLTScript)
  -     {
  -             XalanDOMString tmpStr(chars, length);
  -             append(m_LXSLTScriptBody,tmpStr);
  -     }
  -     // END SANJIVA CODE
  -     // TODO: Flag error if text inside of stylesheet
  -#endif
   }
   
   
  
  
  

Reply via email to