Package net.sf.saxon.serialize
Class XHTML1Emitter
java.lang.Object
net.sf.saxon.event.SequenceReceiver
net.sf.saxon.serialize.Emitter
net.sf.saxon.serialize.XMLEmitter
net.sf.saxon.serialize.XHTML1Emitter
- All Implemented Interfaces:
Result,Receiver,ReceiverWithOutputProperties
XHTMLEmitter is an Emitter that generates XHTML 1 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 net.sf.saxon.serialize.XMLEmitter
attSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, elementCode, elementStack, indentForNextAttribute, openStartTag, specialInAtt, specialInAttSingle, specialInText, started, startedElement, undeclareNamespaces, unfailingFields inherited from class net.sf.saxon.serialize.Emitter
allCharactersEncodable, characterSet, outputProperties, outputStream, streamResult, writerFields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemIdFields 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, NodeName name) Close an empty element tag.Methods inherited from class net.sf.saxon.serialize.XMLEmitter
characters, close, closeStartTag, comment, convertToAscii, endDocument, endElement, getAttributeIndentString, isStarted, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeDocTypeWithNullSystemId, writeEscapeMethods inherited from class net.sf.saxon.serialize.Emitter
append, getOutputProperties, getOutputStream, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setStreamResult, setUnparsedEntity, setWriter, usesWriterMethods inherited from class net.sf.saxon.event.SequenceReceiver
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.event.Receiver
append, getPipelineConfiguration, handlesAppend, setPipelineConfiguration, setSystemIdMethods inherited from interface javax.xml.transform.Result
getSystemId
-
Field Details
-
emptyTags1
Table of XHTML tags that have no closing tag
-
-
Constructor Details
-
XHTML1Emitter
public XHTML1Emitter()
-
-
Method Details
-
emptyElementTagCloser
Close an empty element tag.- Overrides:
emptyElementTagCloserin classXMLEmitter- Parameters:
displayName- the name of the empty elementname- the fingerprint of the name of the empty element- Returns:
- the string used to close an empty element tag.
-