Class HTML50Emitter

    • Constructor Detail

      • HTML50Emitter

        public HTML50Emitter()
        Constructor
    • Method Detail

      • isHTMLElement

        protected boolean isHTMLElement​(NodeName name)
        Decide whether an element is "serialized as an HTML element" in the language of the 3.0 specification
        Specified by:
        isHTMLElement in class HTMLEmitter
        Returns:
        true if the element is to be serialized as an HTML element
      • openDocument

        protected void openDocument()
                             throws XPathException
        Description copied from class: XMLEmitter
        Do the real work of starting the document. This happens when the first content is written.
        Overrides:
        openDocument in class HTMLEmitter
        Throws:
        XPathException - if an error occurs opening the output file
      • writeDocType

        protected void writeDocType​(NodeName name,
                                    java.lang.String displayName,
                                    java.lang.String systemId,
                                    java.lang.String publicId)
                             throws XPathException
        Output the document type declaration
        Overrides:
        writeDocType in class HTMLEmitter
        Parameters:
        displayName - The element name
        systemId - The DOCTYPE system identifier
        publicId - The DOCTYPE public identifier
        name - the qualified name of the element
        Throws:
        XPathException - if an error occurs writing to the output
      • rejectControlCharacters

        protected boolean rejectControlCharacters()
        Ask whether control characters should be rejected: true for HTML4, false for HTML5
        Specified by:
        rejectControlCharacters in class HTMLEmitter
        Returns:
        true if control characters should be rejected