pbwest 2002/10/30 06:32:26
Modified: src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FOTree.java
Log:
Moved getEndElement for fo:root element in here.
In all cases, the class that issues the get/expect also issues the getEndElement.
Revision Changes Path
No revision
No revision
1.1.2.21 +6 -7 xml-fop/src/org/apache/fop/fo/Attic/FOTree.java
Index: FOTree.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FOTree.java,v
retrieving revision 1.1.2.20
retrieving revision 1.1.2.21
diff -u -r1.1.2.20 -r1.1.2.21
--- FOTree.java 24 Oct 2002 14:51:53 -0000 1.1.2.20
+++ FOTree.java 30 Oct 2002 14:32:25 -0000 1.1.2.21
@@ -123,14 +123,13 @@
("scriptsMap","Pk"));
// Let the parser look after STARTDOCUMENT and the correct
// positioning of the root element
- event = xmlevents.getStartElement
- (XMLNamespaces.XSLNSpaceIndex, "root");
- if (event != null) {
- System.out.println("FOTree:" + event);
- }
+ event = xmlevents.getStartElement(FObjectNames.ROOT);
foRoot = new FoRoot(this, event);
foRoot.buildFoTree();
System.out.println("Back from buildFoTree");
+ // Clean up the fo:root event
+ xmlevents.getEndElement(event);
+ // Get the end of document
xmlevents.getEndDocument();
} catch (Exception e) {
if (errorDump) Driver.dumpError(e);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]