public class HtmlSerializerFactory.HTMLSerializer extends org.apache.cocoon.components.serializers.util.HTMLSerializer implements Serializer
A serializer converting XHTML into plain old HTML.
For configuration options of this serializer, please look at the
XHtmlSerializerFactory and
EncodingSerializer.
Any of the XHTML document type declared or used will be converted into
its HTML 4.01 counterpart, and in addition to those a "compatible" doctype
can be supported to exploit a couple of shortcuts into MSIE's rendering
engine. The values for the doctype-default can then be:
none"compatible"strict"loose"frameset"HTML401_DOCTYPE_COMPATIBLE, HTML401_DOCTYPE_FRAMESET, HTML401_DOCTYPE_STRICT, HTML401_DOCTYPE_TRANSITIONAL| Constructor and Description |
|---|
HTMLSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose the serializer.
|
void |
init(ProcessingContext context,
ProcessingComponentConfiguration config)
Initialize this component.
|
body, endElementImpl, head, setDoctypeDefault, startElementImplencode, getMimeType, isCdataElement, setOmitXmlDeclarationcharactersImpl, closeElement, comment, endCDATA, endDocument, endDTD, endEntity, ignorableWhitespace, processingInstruction, recycle, skippedEntity, startCDATA, startDocument, startDTD, startEntitycharacters, encode, encode, endElement, endPrefixMapping, flush, getColumnNumber, getLineNumber, getLocation, getPublicId, getSystemId, include, setDocumentLocator, setEncoding, setIndentPerLevel, setOutputStream, setup, startElement, startPrefixMapping, write, write, write, write, write, writeIndent, writeln, writelnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingpublic void init(ProcessingContext context, ProcessingComponentConfiguration config) throws IOException
Serializerinit in interface Serializercontext - The invocation context.config - The configuration for this component.IOExceptionSerializer.init(org.apache.sling.rewriter.ProcessingContext, org.apache.sling.rewriter.ProcessingComponentConfiguration)public void dispose()
Serializerdispose in interface SerializerSerializer.dispose()Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.