You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2001/05/07 23:26:44 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/stree StreeDOMBuilder.java
mmidy 01/05/07 14:26:44
Modified: java/src/org/apache/xalan/stree StreeDOMBuilder.java
Log:
Set the element's level correctly, before we process attributes.
Revision Changes Path
1.16 +1 -1 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.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- StreeDOMBuilder.java 2001/03/05 19:54:48 1.15
+++ StreeDOMBuilder.java 2001/05/07 21:26:40 1.16
@@ -183,7 +183,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);
+ elem.m_level = (short) (((Parent)(m_currentNode == null ? m_doc : m_currentNode)).m_level + 1);
int nAtts = atts.getLength();
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org