net.sf.saxon.event

Class XHTMLEmitter

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
IntHashSetemptyTags
Table of XHTML tags that have no closing tag
Method Summary
protected StringemptyElementTagCloser(String displayName, int nameCode)
Close an empty element tag.
protected voidopenDocument()
Do the real work of starting the document.

Field Detail

emptyTags

IntHashSet emptyTags
Table of XHTML tags that have no closing tag

Method Detail

emptyElementTagCloser

protected String emptyElementTagCloser(String displayName, int nameCode)
Close an empty element tag.

openDocument

protected void openDocument()
Do the real work of starting the document. This happens when the first content is written.

Throws: net.sf.saxon.trans.XPathException