com.icl.saxon.output
Class  HTMLEmitter
java.lang.Object
  |
  +--com.icl.saxon.output.XMLEmitter
        |
        +--com.icl.saxon.output.HTMLEmitter
- All Implemented Interfaces: 
- Emitter
- public class HTMLEmitter- extends XMLEmitter
This class generates HTML output
 
 
| Method Summary | 
|  void | endElement(Name fullname)Output an element end tag.
 
 | 
| protected static boolean | isEmptyTag(java.lang.String tag)
 | 
| static boolean | isUrlAttribute(java.lang.String element,
               java.lang.String attribute)
 | 
|  void | processingInstruction(java.lang.String target,
                      java.lang.String data)Handle a processing instruction.
 | 
|  void | startDocument()Output start of document
 | 
|  void | startElement(Name fullname,
             AttributeCollection atts)Output element start tag
 | 
| protected  void | writeAttribute(java.lang.String elname,
               java.lang.String attname,
               java.lang.String type,
               java.lang.String value)Write attribute name=value pair.
 | 
| protected  void | writeEscape(char[] ch,
            int start,
            int length,
            boolean inAttribute)Escape characters.
 | 
 
| Methods inherited from class com.icl.saxon.output.XMLEmitter | 
| characters, closeStartTag, comment, emptyElementTagCloser, endDocument, outputCharacterReference, setCharacterSet, setDocumentLocator, setEscaping, setOutputDetails, setWriter, startPrefixMapping, testCharacters, testCharacters, unwindNamespaces, writeDeclaration, writeDocType | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
HTMLEmitter
public HTMLEmitter()
- Constructor
isEmptyTag
protected static boolean isEmptyTag(java.lang.String tag)
isUrlAttribute
public static boolean isUrlAttribute(java.lang.String element,
                                     java.lang.String attribute)
startDocument
public void startDocument()
                   throws org.xml.sax.SAXException
- Output start of document- 
- Overrides:
- startDocumentin class- XMLEmitter
 
startElement
public void startElement(Name fullname,
                         AttributeCollection atts)
                  throws org.xml.sax.SAXException
- Output element start tag- 
- Overrides:
- startElementin class- XMLEmitter
 
writeAttribute
protected void writeAttribute(java.lang.String elname,
                              java.lang.String attname,
                              java.lang.String type,
                              java.lang.String value)
                       throws org.xml.sax.SAXException
- Write attribute name=value pair. Overrides the XML behaviour if the name and value
 are the same (we assume this is a boolean attribute to be minimised), or if the value is
 a URL.- 
- Overrides:
- writeAttributein class- XMLEmitter
 
writeEscape
protected void writeEscape(char[] ch,
                           int start,
                           int length,
                           boolean inAttribute)
                    throws java.io.IOException
- Escape characters. Overrides the XML behaviour- 
- Overrides:
- writeEscapein class- XMLEmitter
 
- Following copied from class: com.icl.saxon.output.XMLEmitter
- 
- Parameters:
- ch- The character array containing the string
- start- The start position of the input string within the character array
- length- The length of the input string within the character array
 This method converts the XML special characters (such as < and &) into their
 predefined entities.
 
endElement
public void endElement(Name fullname)
                throws org.xml.sax.SAXException
- Output an element end tag.
 
- 
- Overrides:
- endElementin class- XMLEmitter
 
- 
- Parameters:
- name- The element name (tag)
 
processingInstruction
public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws org.xml.sax.SAXException
- Handle a processing instruction.- 
- Overrides:
- processingInstructionin class- XMLEmitter