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/08 20:15:04 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils DOMBuilder.java
sboag 01/01/08 11:15:03
Modified: java/src/org/apache/xml/utils DOMBuilder.java
Log:
Fixes problem reported by Guoliang Cao <ca...@ispsoft.com>,
note titled "A possible bug in xalan 2.0 D05/D06",
01/08/2001 11:18 AM. The DOMBuilder was screening out
whitespace nodes before the first element was being pushed, which
it shouldn't if a document fragment is being used. The fix is to
always return false from isOutsideDocElem() if the (null == m_docFrag).
Revision Changes Path
1.6 +1 -1 xml-xalan/java/src/org/apache/xml/utils/DOMBuilder.java
Index: DOMBuilder.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/DOMBuilder.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DOMBuilder.java 2001/01/02 03:42:50 1.5
+++ DOMBuilder.java 2001/01/08 19:15:02 1.6
@@ -525,7 +525,7 @@
*/
private boolean isOutsideDocElem()
{
- return m_elemStack.size() == 0 && (null == m_currentNode || m_currentNode.getNodeType() == Node.DOCUMENT_NODE);
+ return (null == m_docFrag) && m_elemStack.size() == 0 && (null == m_currentNode || m_currentNode.getNodeType() == Node.DOCUMENT_NODE);
}
/**