You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mk...@apache.org on 2002/09/23 20:38:24 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/trax DOM2TO.java
mkwan 2002/09/23 11:38:23
Modified: java/src/org/apache/xalan/xsltc/trax DOM2TO.java
Log:
For Bugzilla 12924. Add handling code for DocumentType Node.
Revision Changes Path
1.3 +9 -2 xml-xalan/java/src/org/apache/xalan/xsltc/trax/DOM2TO.java
Index: DOM2TO.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/DOM2TO.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DOM2TO.java 23 Aug 2002 17:41:42 -0000 1.2
+++ DOM2TO.java 23 Sep 2002 18:38:23 -0000 1.3
@@ -132,7 +132,6 @@
switch (node.getNodeType()) {
case Node.ATTRIBUTE_NODE: // handled by ELEMENT_NODE
- case Node.DOCUMENT_FRAGMENT_NODE:
case Node.DOCUMENT_TYPE_NODE :
case Node.ENTITY_NODE :
case Node.ENTITY_REFERENCE_NODE:
@@ -157,6 +156,14 @@
next = next.getNextSibling();
}
_handler.endDocument();
+ break;
+
+ case Node.DOCUMENT_FRAGMENT_NODE:
+ next = node.getFirstChild();
+ while (next != null) {
+ parse(next);
+ next = next.getNextSibling();
+ }
break;
case Node.ELEMENT_NODE:
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org