Package net.sf.saxon.event
Class XHTMLEmitter
java.lang.Object
net.sf.saxon.event.Emitter
net.sf.saxon.event.XMLEmitter
net.sf.saxon.event.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
Fields inherited from class net.sf.saxon.event.XMLEmitter
declarationIsWritten, elementCode, elementStack, empty, openStartTag, preferHex, undeclareNamespacesFields inherited from class net.sf.saxon.event.Emitter
allCharactersEncodable, characterSet, namePool, outputProperties, outputStream, pipelineConfig, streamResult, systemId, writerFields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringemptyElementTagCloser(String displayName, int nameCode) Close an empty element tag.protected voidDo the real work of starting the document.Methods inherited from class net.sf.saxon.event.XMLEmitter
attribute, characters, close, closeStartTag, comment, endDocument, endElement, getCachedName, namespace, open, outputCharacterReference, processingInstruction, putCachedName, startContent, startDocument, startElement, testCharacters, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeEscapeMethods inherited from class net.sf.saxon.event.Emitter
getConfiguration, getOutputProperties, getOutputStream, getPipelineConfiguration, getSystemId, getWriter, makeWriter, setOutputProperties, setOutputStream, setPipelineConfiguration, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter
-
Constructor Details
-
XHTMLEmitter
public XHTMLEmitter()
-
-
Method Details
-
openDocument
Do the real work of starting the document. This happens when the first content is written.- Overrides:
openDocumentin classXMLEmitter- Throws:
XPathException
-
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.
-