mmidy       00/07/28 09:07:14

  Modified:    java/src/org/apache/xalan/processor StylesheetHandler.java
  Log:
  Fix problem with the stylesheet locator stack. Was not being popped.
  
  Revision  Changes    Path
  1.5       +9 -1      
xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java
  
  Index: StylesheetHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StylesheetHandler.java    2000/07/17 21:36:53     1.4
  +++ StylesheetHandler.java    2000/07/28 16:07:12     1.5
  @@ -348,7 +348,11 @@
     
     /**
      * Receive a Locator object for document events.
  -   *
  +   * This is called by the parser to push a locator for the 
  +   * stylesheet being parsed. The stack needs to be popped
  +   * after the stylesheed has been parsed. We pop in in 
  +   * popStylesheet.
  +   *  
      * @param locator A locator for all SAX document events.
      * @see org.xml.sax.ContentHandler#setDocumentLocator
      * @see org.xml.sax.Locator
  @@ -798,6 +802,10 @@
      */
     Stylesheet popStylesheet()
     {
  +    // The stylesheetLocatorStack needs to be popped because
  +    // a locator was pushed in for this stylesheet by the SAXparser by 
calling
  +    // setDocumentLocator().
  +    m_stylesheetLocatorStack.pop();
       return (Stylesheet)m_stylesheets.pop();
     }
   
  
  
  

Reply via email to