Package net.sf.saxon.serialize
Class XHTMLEmitter
- java.lang.Object
-
- net.sf.saxon.serialize.Emitter
-
- net.sf.saxon.serialize.XMLEmitter
-
- net.sf.saxon.serialize.XHTMLEmitter
-
- All Implemented Interfaces:
javax.xml.transform.Result
,Receiver
public class XHTMLEmitter extends XMLEmitter
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 Modifier and Type Field Description (package private) static java.util.Set<java.lang.String>
emptyTags
Table of XHTML tags that have no closing tag-
Fields inherited from class net.sf.saxon.serialize.XMLEmitter
characterReferenceGenerator, declarationIsWritten, elementCode, elementStack, indentForNextAttribute, openStartTag, specialInAtt, specialInText, started, startedElement, undeclareNamespaces
-
Fields inherited from class net.sf.saxon.serialize.Emitter
allCharactersEncodable, characterSet, namePool, outputProperties, outputStream, pipelineConfig, streamResult, systemId, writer
-
-
Constructor Summary
Constructors Constructor Description XHTMLEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
emptyElementTagCloser(java.lang.String displayName, NodeName nameCode)
Close an empty element tag.-
Methods inherited from class net.sf.saxon.serialize.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, writeEscape
-
Methods inherited from class net.sf.saxon.serialize.Emitter
getConfiguration, getOutputProperties, getOutputStream, getPipelineConfiguration, getSystemId, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setPipelineConfiguration, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter
-
-
-
-
Method Detail
-
emptyElementTagCloser
protected java.lang.String emptyElementTagCloser(java.lang.String displayName, NodeName nameCode)
Close an empty element tag.- Overrides:
emptyElementTagCloser
in 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.
-
-