| org.apache.cocoon.transformation.AbstractTransformer org.apache.cocoon.portal.transformation.HTMLRootTransformer
HTMLRootTransformer | public class HTMLRootTransformer extends AbstractTransformer implements CacheableProcessingComponent(Code) | | This transformer is an utility transformer for dealing with (x)html content.
It has two operating modes:
Add Mode (default): The transformer simply adds an html and a body element
around the sax stream.
Remove Mode: The transformer removes all surrounding elements like html and body
and only passes everything on to the next pipeline component that's contained
in a body element.
author: Carsten Ziegeler author: Volker Schmitt version: CVS $Id: HTMLRootTransformer.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | characters(char[] c, int start, int len) | public void | endDocument() | public void | endElement(String uri, String local, String qName) | public Serializable | getKey() | public SourceValidity | getValidity() | public void | setup(SourceResolver resolver, Map objectModel, String src, Parameters par) | public void | startDocument() | public void | startElement(String uri, String local, String qName, Attributes attr) |
addMode | protected boolean addMode(Code) | | the operating mode: true means adding the root elements, false means removing them
|
ignoreRootElement | protected boolean ignoreRootElement(Code) | | do we remove the root tag?
|
ignoreRootElementCount | protected int ignoreRootElementCount(Code) | | |
insideBodyTag | protected boolean insideBodyTag(Code) | | |
getValidity | public SourceValidity getValidity()(Code) | | |
|
|