pbwest 2002/11/23 06:28:57 Modified: src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FoRoot.java Log: More general getEndElement(). Revision Changes Path No revision No revision 1.1.2.17 +6 -6 xml-fop/src/org/apache/fop/fo/Attic/FoRoot.java Index: FoRoot.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FoRoot.java,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -u -r1.1.2.16 -r1.1.2.17 --- FoRoot.java 13 Nov 2002 04:06:24 -0000 1.1.2.16 +++ FoRoot.java 23 Nov 2002 14:28:57 -0000 1.1.2.17 @@ -145,7 +145,7 @@ // process the declarations declarations = numChildren(); new FoDeclarations(getFOTree(), this, ev); - xmlevents.getEndElement(FObjectNames.DECLARATIONS); + xmlevents.getEndElement(ev); } // Process page-sequences here @@ -157,13 +157,13 @@ throw new FOPException("No page-sequence found."); firstPageSeq = numChildren(); new FoPageSequence(getFOTree(), this, ev); - xmlevents.getEndElement(FObjectNames.PAGE_SEQUENCE); + xmlevents.getEndElement(ev); while ((ev = xmlevents.expectStartElement (FObjectNames.PAGE_SEQUENCE, XMLEvent.DISCARD_W_SPACE)) != null) { // Loop over remaining fo:page-sequences new FoPageSequence(getFOTree(), this, ev); - xmlevents.getEndElement(FObjectNames.PAGE_SEQUENCE); + xmlevents.getEndElement(ev); } } catch (NoSuchElementException e) { throw new FOPException
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]