Class XHTMLEmitter
java.lang.Object
net.sf.saxon.serialize.Emitter
net.sf.saxon.serialize.XMLEmitter
net.sf.saxon.serialize.XHTMLEmitter
XHTMLEmitter is an Emitter that generates XHTML output.
It is the same as XMLEmitter except that it follows the legacy HTML browser
compatibility rules: for example, generating empty elements such as [BR /], and
using [p][/p] for empty paragraphs rather than [p/]
-
Field Summary
FieldsModifier and TypeFieldDescriptionTable of XHTML tags that have no closing tagFields inherited from class XMLEmitter
characterReferenceGenerator, declarationIsWritten, elementCode, elementStack, indentForNextAttribute, openStartTag, specialInAtt, specialInText, started, startedElement, undeclareNamespacesFields inherited from class Emitter
allCharactersEncodable, characterSet, namePool, outputProperties, outputStream, pipelineConfig, streamResult, systemId, writerFields inherited from interface Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringemptyElementTagCloser(String displayName, NodeName nameCode) Close an empty element tag.Methods inherited from class XMLEmitter
attribute, characters, close, closeStartTag, comment, endDocument, endElement, getAttributeIndentString, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startContent, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeEscapeMethods inherited from class Emitter
getConfiguration, getOutputProperties, getOutputStream, getPipelineConfiguration, getSystemId, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setPipelineConfiguration, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter
-
Field Details
-
emptyTags
-
-
Constructor Details
-
XHTMLEmitter
public XHTMLEmitter()
-
-
Method Details
-
emptyElementTagCloser
Close an empty element tag.- Overrides:
emptyElementTagCloserin classXMLEmitter- Parameters:
displayName- the name of the empty elementnameCode- the fingerprint of the name of the empty element- Returns:
- the string used to close an empty element tag.
-