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:
javax.xml.transform.Result
,Receiver
,ReceiverWithOutputProperties
public class XHTML1Emitter extends XMLEmitter
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
-
Fields inherited from class net.sf.saxon.serialize.XMLEmitter
attSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, DOCTYPE, elementCode, elementStack, indentForNextAttribute, internalSubset, openStartTag, RIGHT_ANGLE_NEWLINE, specialInAtt, specialInAttSingle, specialInText, started, startedElement, undeclareNamespaces, unfailing
-
Fields inherited from class net.sf.saxon.serialize.Emitter
allCharactersEncodable, characterSet, outputProperties, writer
-
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemId
-
-
Constructor Summary
Constructors Constructor Description XHTML1Emitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeEmptyElementTagCloser(java.lang.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, isStarted, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeAttributeIndentString, writeCodePoint, writeDeclaration, writeDocType, writeDocTypeWithNullSystemId, writeEscape
-
Methods inherited from class net.sf.saxon.serialize.Emitter
append, getOutputProperties, setMustClose, setOutputProperties, setUnicodeWriter, setUnparsedEntity
-
Methods inherited from class net.sf.saxon.event.SequenceReceiver
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.event.Receiver
append, getPipelineConfiguration, handlesAppend, setPipelineConfiguration
-
-
-
-
Method Detail
-
writeEmptyElementTagCloser
protected void writeEmptyElementTagCloser(java.lang.String displayName, NodeName name) throws java.io.IOException
Close an empty element tag.- Overrides:
writeEmptyElementTagCloser
in classXMLEmitter
- Parameters:
displayName
- the name of the empty elementname
- the fingerprint of the name of the empty element- Throws:
java.io.IOException
- if an IO exception occurs
-
-