public class HTML40Emitter extends HTMLEmitter
versionattSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, DOCTYPE, elementCode, elementStack, indentForNextAttribute, internalSubset, openStartTag, RIGHT_ANGLE_NEWLINE, specialInAtt, specialInAttSingle, specialInText, started, startedElement, undeclareNamespaces, unfailingallCharactersEncodable, characterSet, outputProperties, writerpipelineConfiguration, previousAtomic, systemId| Constructor and Description |
|---|
HTML40Emitter()
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
|
characters, endElement, isEmptyTag, open, processingInstruction, setEmptyTag, setEscapeNonAscii, startContentOLD, writeAttribute, writeDocType, writeEmptyElementTagCloser, writeEscapeclose, closeStartTag, comment, convertToAscii, endDocument, isStarted, namespace, setCharacterReferenceGenerator, setIndentForNextAttribute, startDocument, testCharacters, usesTypeAnnotations, writeAttributeIndentString, writeCodePoint, writeDeclaration, writeDocTypeWithNullSystemIdappend, getOutputProperties, setMustClose, setOutputProperties, setUnicodeWriter, setUnparsedEntityappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, getPipelineConfiguration, handlesAppend, setPipelineConfigurationprotected boolean isHTMLElement(NodeName name)
isHTMLElement in class HTMLEmittername - the name of the elementprotected void openDocument()
throws XPathException
XMLEmitteropenDocument in class HTMLEmitterXPathException - if an error occurs opening the output filepublic void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
startElement in interface ReceiverstartElement in class HTMLEmitterelemName - the name of the elementtype - the type annotation of the elementattributes - the attributes of this elementnamespaces - the in-scope namespaces of this element: generally this is all the in-scope
namespaces, without relying on inheriting namespaces from parent elementslocation - an object providing information about the module, line, and column where the node originatedproperties - bit-significant properties of the element node. If there are no relevant
properties, zero is supplied. The definitions of the bits are in class ReceiverOptionXPathException - if an error occursprotected boolean rejectControlCharacters()
rejectControlCharacters in class HTMLEmitterCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.