cziegeler 02/02/22 06:35:21 Modified: src/scratchpad/src/org/apache/cocoon/sunshine/transformation AbstractSunShineTransformer.java Log: Fixed initialization Revision Changes Path 1.3 +15 -9 xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/transformation/AbstractSunShineTransformer.java Index: AbstractSunShineTransformer.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/transformation/AbstractSunShineTransformer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- AbstractSunShineTransformer.java 22 Feb 2002 06:57:19 -0000 1.2 +++ AbstractSunShineTransformer.java 22 Feb 2002 14:35:21 -0000 1.3 @@ -129,7 +129,7 @@ * * * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> - * @version CVS $Id: AbstractSunShineTransformer.java,v 1.2 2002/02/22 06:57:19 cziegeler Exp $ + * @version CVS $Id: AbstractSunShineTransformer.java,v 1.3 2002/02/22 14:35:21 cziegeler Exp $ */ public abstract class AbstractSunShineTransformer extends AbstractTransformer @@ -138,25 +138,25 @@ /** Controlls SAX event handling. * If set to true all whitespace events are ignored. */ - protected boolean ignoreWhitespaces = true; + protected boolean ignoreWhitespaces; /** Controlls SAX event handling * If set to true all characters events containing only whitespaces * are ignored. */ - protected boolean ignoreEmptyCharacters = false; + protected boolean ignoreEmptyCharacters; /** Controlls SAX event handling * If this is incremented all events are not forwarded to the next * pipeline component, but the hooks are still called. */ - protected int ignoreEventsCount = 0; + protected int ignoreEventsCount; /** Controlls SAX event handling * If this is greater than zero, the hooks are not called. Attention, * make sure, that you decrement this counter properly as your hooks are * not called anymore! */ - protected int ignoreHooksCount = 0; + protected int ignoreHooksCount; /** * The used namespace for the SAX filtering. @@ -261,6 +261,13 @@ throws ProcessingException, SAXException, IOException { + if (this.getLogger().isDebugEnabled() == true) { + this.getLogger().debug("BEGIN setup resolver="+resolver+ + ", objectModel="+objectModel+ + ", src="+src+ + ", parameters="+par); + } + if (this.defaultNamespaceURI == null) { this.defaultNamespaceURI = this.namespaceURI; } @@ -276,11 +283,10 @@ // get the current namespace this.namespaceURI = this.parameters.getParameter("namespaceURI", this.defaultNamespaceURI); - if (this.getLogger().isDebugEnabled() == true) { - this.getLogger().debug("BEGIN setup resolver="+resolver+", objectmodel="+objectModel+", src="+src+", parameters="+par); - } - this.ignoreHooksCount = 0; + this.ignoreEventsCount = 0; + this.ignoreWhitespaces = true; + this.ignoreEmptyCharacters = false; if (this.getLogger().isDebugEnabled() == true) { this.getLogger().debug("END setup");
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]