Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.XMLEmitter
com.icl.saxon.output.HTMLEmitter
public class HTMLEmitter
extends XMLEmitter
Fields inherited from class com.icl.saxon.output.XMLEmitter | |
attbuff1 , characterSet , declarationIsWritten , docTypeWritten , empty , escaping , lastDisplayName , lastNameCode , lastPrefix , lastURI , openStartTag , preferHex , specialInAtt , specialInText |
Fields inherited from class com.icl.saxon.output.Emitter | |
locator , namePool , outputProperties , outputStream , systemId , writer |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
protected static boolean |
|
static boolean |
|
void |
|
void |
|
void |
|
protected void |
|
protected void |
|
Methods inherited from class com.icl.saxon.output.XMLEmitter | |
characters , closeStartTag , comment , emptyElementTagCloser , endDocument , endElement , outputCharacterReference , processingInstruction , setDocumentLocator , setEscaping , setOutputProperties , setResult , setUnparsedEntity , startDocument , startElement , testCharacters , testCharacters , writeAttribute , writeDeclaration , writeDocType , writeEscape |
Methods inherited from class com.icl.saxon.output.Emitter | |
characters , comment , endDocument , endElement , getNamePool , getOutputProperties , getOutputStream , getSystemId , getWriter , makeEmitter , processingInstruction , setDocumentLocator , setEscaping , setNamePool , setOutputProperties , setOutputStream , setSystemId , setUnparsedEntity , setWriter , startDocument , startElement , usesWriter |
public void characters(char[] ch, int start, int length) throws TransformerException
Character data.
- Overrides:
- characters in interface XMLEmitter
public void endElement(int nameCode) throws TransformerException
Output an element end tag.
- Overrides:
- endElement in interface XMLEmitter
- Parameters:
protected static boolean isEmptyTag(String tag)
public static boolean isUrlAttribute(String element, String attribute)
public void processingInstruction(String target, String data) throws TransformerException
Handle a processing instruction.
- Overrides:
- processingInstruction in interface XMLEmitter
public void startDocument() throws TransformerException
Output start of document
- Overrides:
- startDocument in interface XMLEmitter
public void startElement(int nameCode, Attributes atts, int[] namespaces, int nscount) throws TransformerException
Output element start tag
- Overrides:
- startElement in interface XMLEmitter
protected void writeAttribute(int elCode, String attname, String type, String value) throws TransformerException
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:
- writeAttribute in interface XMLEmitter
protected void writeEscape(ch[] , int start, int length, boolean inAttribute) throws java.io.IOException
Escape characters. Overrides the XML behaviour
- Overrides:
- writeEscape in interface XMLEmitter