public class XHTML5Emitter extends XMLEmitter
attSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, elementCode, elementStack, indentForNextAttribute, openStartTag, started, startedElement, undeclareNamespaces, unfailing
allCharactersEncodable, characterSet, outputProperties, outputStream, streamResult, writer
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
XHTML5Emitter() |
Modifier and Type | Method and Description |
---|---|
void |
characters(java.lang.CharSequence chars,
Location locationId,
int properties)
Character data.
|
protected java.lang.String |
emptyElementTagCloser(java.lang.String displayName,
NodeName name)
Close an empty element 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() |
attribute, close, closeStartTag, comment, convertToAscii, endDocument, endElement, getAttributeIndentString, isStarted, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startContent, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeEscape
append, getOutputProperties, getOutputStream, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setStreamResult, setUnparsedEntity, setWriter, usesWriter
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, getPipelineConfiguration, handlesAppend, setPipelineConfiguration, setSystemId
protected void writeDocType(NodeName name, java.lang.String displayName, java.lang.String systemId, java.lang.String publicId) throws XPathException
writeDocType
in class XMLEmitter
name
- the qualified name of the elementdisplayName
- The element namsystemId
- The DOCTYP system identifierpublicId
- The DOCTYPE public identifierXPathException
- if an error occurs writing to the outputprotected boolean writeDocTypeWithNullSystemId()
writeDocTypeWithNullSystemId
in class XMLEmitter
protected java.lang.String emptyElementTagCloser(java.lang.String displayName, NodeName name)
emptyElementTagCloser
in class XMLEmitter
displayName
- the name of the empty elementname
- the fingerprint of the name of the empty elementpublic void characters(java.lang.CharSequence chars, Location locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class XMLEmitter
chars
- 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-2020 Saxonica Limited. All rights reserved.