public class HTML50Emitter extends HTMLEmitter
versionattSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, elementCode, elementStack, indentForNextAttribute, openStartTag, started, startedElement, undeclareNamespaces, unfailingallCharactersEncodable, characterSet, outputProperties, outputStream, streamResult, writerpipelineConfiguration, previousAtomic, systemId| Constructor and Description |
|---|
HTML50Emitter()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isHTMLElement(NodeName name)
Decide whether an element is "serialized as an HTML element" in the language of the 3.0 specification
|
protected void |
openDocument()
Do the real work of starting the document.
|
protected boolean |
rejectControlCharacters()
Ask whether control characters should be rejected: true for HTML4, false for HTML5
|
void |
startElement(NodeName elemName,
SchemaType type,
AttributeMap attributes,
NamespaceMap namespaces,
Location location,
int properties)
Output element start tag
|
protected void |
writeDocType(NodeName name,
java.lang.String displayName,
java.lang.String systemId,
java.lang.String publicId)
Output the document type declaration
|
protected boolean |
writeDocTypeWithNullSystemId() |
characters, emptyElementTagCloser, endElement, isEmptyTag, open, processingInstruction, setEmptyTag, setEscapeNonAscii, startContentOLD, writeAttribute, writeEscapeclose, closeStartTag, comment, convertToAscii, endDocument, getAttributeIndentString, isStarted, namespace, setCharacterReferenceGenerator, setIndentForNextAttribute, startDocument, testCharacters, usesTypeAnnotations, writeCharSequence, writeDeclarationappend, getOutputProperties, getOutputStream, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setStreamResult, setUnparsedEntity, setWriter, usesWriterappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, getPipelineConfiguration, handlesAppend, setPipelineConfiguration, setSystemIdprotected boolean isHTMLElement(NodeName name)
isHTMLElement in class HTMLEmitterprotected void openDocument()
throws XPathException
XMLEmitteropenDocument in class HTMLEmitterXPathException - if an error occurs opening the output fileprotected void writeDocType(NodeName name, java.lang.String displayName, java.lang.String systemId, java.lang.String publicId) throws XPathException
writeDocType in class HTMLEmitterdisplayName - The element namesystemId - The DOCTYPE system identifierpublicId - The DOCTYPE public identifiername - the qualified name of the elementXPathException - if an error occurs writing to the outputprotected boolean writeDocTypeWithNullSystemId()
writeDocTypeWithNullSystemId in class XMLEmitterpublic void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
startElement in interface ReceiverstartElement in class HTMLEmitterelemName - type - attributes - namespaces - location - properties - XPathException - if an error occursprotected boolean rejectControlCharacters()
rejectControlCharacters in class HTMLEmitterCopyright (c) 2004-2020 Saxonica Limited.