public class XHTML5Emitter extends XMLEmitter
characterReferenceGenerator, declarationIsWritten, elementCode, elementStack, indentForNextAttribute, openStartTag, started, startedElement, undeclareNamespaces
allCharactersEncodable, characterSet, namePool, outputProperties, outputStream, pipelineConfig, streamResult, systemId, writer
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
XHTML5Emitter() |
Modifier and Type | Method and Description |
---|---|
void |
characters(CharSequence chars,
int locationId,
int properties)
Character data.
|
protected String |
emptyElementTagCloser(String displayName,
NodeName name)
Close an empty element tag.
|
protected void |
writeDocType(NodeName name,
String displayName,
String systemId,
String publicId)
Output the document type declaration
|
protected boolean |
writeDocTypeWithNullSystemId() |
attribute, close, closeStartTag, comment, endDocument, endElement, getAttributeIndentString, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startContent, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeEscape
getConfiguration, getOutputProperties, getOutputStream, getPipelineConfiguration, getSystemId, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setPipelineConfiguration, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter
protected void writeDocType(NodeName name, String displayName, String systemId, 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 String emptyElementTagCloser(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(CharSequence chars, int locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class XMLEmitter
chars
- The characterslocationId
- an integer which can be interpreted using a LocationProvider
to return information such as line number and system ID. If no location information is available,
the value zero is supplied.properties
- Bit significant value. The following bits are defined:
XPathException
- if an error occursCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.