Class HTML40Emitter

All Implemented Interfaces:
Result, Receiver, ReceiverWithOutputProperties

public class HTML40Emitter extends HTMLEmitter
This class generates HTML 4.0 output
  • Constructor Details

    • HTML40Emitter

      public HTML40Emitter()
      Constructor
  • Method Details

    • 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
    • startElement

      public void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
      Output element start tag
      Specified by:
      startElement in interface Receiver
      Overrides:
      startElement in class HTMLEmitter
      Parameters:
      elemName -
      type -
      attributes -
      namespaces -
      location -
      properties -
      Throws:
      XPathException - if an error occurs
    • 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