You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/01/02 04:26:41 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/stree StreeDOMBuilder.java

sboag       01/01/01 19:26:41

  Modified:    java/src/org/apache/xalan/stree StreeDOMBuilder.java
  Log:
  In startElement, set the level before adding the attributes, so
  the level number of the attributes will be correct.  This fixes a
  bug with complex axes walkers where nodes can be lost.
  
  Revision  Changes    Path
  1.12      +6 -5      xml-xalan/java/src/org/apache/xalan/stree/StreeDOMBuilder.java
  
  Index: StreeDOMBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/StreeDOMBuilder.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- StreeDOMBuilder.java	2000/12/31 09:55:54	1.11
  +++ StreeDOMBuilder.java	2001/01/02 03:26:40	1.12
  @@ -159,7 +159,7 @@
      * @param localName local part of qualified name of the element
      * @param name The element type name.
      * @param atts The attributes attached to the element, if any.
  -   * @see org.apache.xml.utils.DOMBuilder.startElement()
  +   * @see org.apache.xml.utils.DOMBuilder#startElement(String, String, String, Attributes)
      *
      * @throws org.xml.sax.SAXException
      */
  @@ -182,6 +182,7 @@
       // But, in order for the document order stuff to be done correctly, we 
       // have to set the uid here, before the attributes are counted.
       elem.m_uid = ++((DocImpl)m_doc).m_docOrderCount;
  +    elem.m_level = (short) (((DocImpl)m_doc).m_level + 1);
   
       int nAtts = atts.getLength();
   
  @@ -245,7 +246,7 @@
      * @param start The start position in the array.
      * @param length The number of characters to read from the array.
      *
  -   * @throws TransformerException
  +   * @throws org.xml.sax.SAXException
      *
      * @throws org.xml.sax.SAXException
      */
  @@ -289,7 +290,7 @@
      * @param start The start position in the array.
      * @param length The number of characters to read from the array.
      *
  -   * @throws TransformerException
  +   * @throws org.xml.sax.SAXException
      *
      * @throws org.xml.sax.SAXException
      */
  @@ -316,7 +317,7 @@
      * @param start The start position in the array.
      * @param length The number of characters to read from the array.
      *
  -   * @throws TransformerException
  +   * @throws org.xml.sax.SAXException
      *
      * @throws org.xml.sax.SAXException
      */
  @@ -338,7 +339,7 @@
      * @param start The starting position in the array.
      * @param length The number of characters to use from the array.
      *
  -   * @throws TransformerException
  +   * @throws org.xml.sax.SAXException
      *
      * @throws org.xml.sax.SAXException
      */