Author: vgritsenko Date: Mon Apr 25 10:05:02 2005 New Revision: 164603 URL: http://svn.apache.org/viewcvs?rev=164603&view=rev Log: call super.configure
Modified: cocoon/blocks/supported/html/trunk/java/org/apache/cocoon/transformation/HTMLTransformer.java Modified: cocoon/blocks/supported/html/trunk/java/org/apache/cocoon/transformation/HTMLTransformer.java URL: http://svn.apache.org/viewcvs/cocoon/blocks/supported/html/trunk/java/org/apache/cocoon/transformation/HTMLTransformer.java?rev=164603&r1=164602&r2=164603&view=diff ============================================================================== --- cocoon/blocks/supported/html/trunk/java/org/apache/cocoon/transformation/HTMLTransformer.java (original) +++ cocoon/blocks/supported/html/trunk/java/org/apache/cocoon/transformation/HTMLTransformer.java Mon Apr 25 10:05:02 2005 @@ -1,12 +1,12 @@ /* * Copyright 1999-2004 The Apache Software Foundation. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -40,7 +40,7 @@ import org.xml.sax.SAXException; /** - * Converts (escaped) HTML snippets into JTidied HTML. + * Converts (escaped) HTML snippets into JTidied HTML. * This transformer expects a list of elements, passed as comma separated * values of the "tags" parameter. It records the text enclosed in such * elements and pass it thru JTidy to obtain valid XHTML. @@ -51,7 +51,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Daniele Madama</a> * @author <a href="mailto:[EMAIL PROTECTED]">Gianugo Rabellino</a> * - * @version CVS $Id: HTMLTransformer.java,v 1.5 2004/06/08 19:02:52 vgritsenko Exp $ + * @version CVS $Id$ */ public class HTMLTransformer extends AbstractSAXTransformer @@ -61,7 +61,7 @@ * Properties for Tidy format */ private Properties properties; - + /** * Tags that must be normalized */ @@ -109,6 +109,8 @@ * a jtidy configuration file location. */ public void configure(Configuration config) throws ConfigurationException { + super.configure(config); + String configUrl = config.getChild("jtidy-config").getValue(null); if (configUrl != null) { org.apache.excalibur.source.SourceResolver resolver = null; @@ -200,10 +202,10 @@ Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); - String tagsParam = par.getParameter("tags", ""); + String tagsParam = par.getParameter("tags", ""); if (getLogger().isDebugEnabled()) { getLogger().debug("tags: " + tagsParam); - } + } this.tags = new HashMap(); StringTokenizer tokenizer = new StringTokenizer(tagsParam, ","); while (tokenizer.hasMoreElements()) {