public class XHTML5Emitter extends XMLEmitter
attSpecials, 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 |
|---|
XHTML5Emitter() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(UnicodeString chars,
Location locationId,
int properties)
Character data.
|
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() |
protected void |
writeEmptyElementTagCloser(java.lang.String displayName,
NodeName name)
Close an empty element tag.
|
close, closeStartTag, comment, convertToAscii, endDocument, endElement, isStarted, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeAttributeIndentString, writeCodePoint, writeDeclaration, writeEscapeappend, 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 void writeDocType(NodeName name, java.lang.String displayName, java.lang.String systemId, java.lang.String publicId) throws XPathException
writeDocType in class XMLEmittername - the qualified name of the elementdisplayName - The element name as displayedsystemId - The DOCTYPE system identifierpublicId - The DOCTYPE public identifierXPathException - if an error occurs writing to the outputprotected boolean writeDocTypeWithNullSystemId()
writeDocTypeWithNullSystemId in class XMLEmitterprotected void writeEmptyElementTagCloser(java.lang.String displayName,
NodeName name)
throws java.io.IOException
writeEmptyElementTagCloser in class XMLEmitterdisplayName - the name of the empty elementname - the fingerprint of the name of the empty elementjava.io.IOException - if an IO exception occurspublic void characters(UnicodeString chars, Location locationId, int properties) throws XPathException
characters in interface Receivercharacters in class XMLEmitterchars - The characterslocationId - provides information such as line number and system ID.properties - Bit significant value. The following bits are defined:
XPathException - if an error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.