Class XHTML1Emitter

All Implemented Interfaces:
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 Details

    • emptyTags1

      static Set<String> emptyTags1
      Table of XHTML tags that have no closing tag
  • Constructor Details

    • XHTML1Emitter

      public XHTML1Emitter()
  • Method Details

    • emptyElementTagCloser

      protected String emptyElementTagCloser(String displayName, NodeName name)
      Close an empty element tag.
      Overrides:
      emptyElementTagCloser in class XMLEmitter
      Parameters:
      displayName - the name of the empty element
      name - the fingerprint of the name of the empty element
      Returns:
      the string used to close an empty element tag.