Class 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 Detail

      • emptyTags

        static java.util.Set<java.lang.String> emptyTags
        Table of XHTML tags that have no closing tag
    • Constructor Detail

      • XHTMLEmitter

        public XHTMLEmitter()
    • Method Detail

      • emptyElementTagCloser

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