com.icl.saxon.output

Class UncommittedEmitter

public class UncommittedEmitter extends ProxyEmitter

This class generates XML or HTML output depending on whether the first tag output is ""

Author: Michael H. Kay

Field Summary
booleancommitted
booleaninitialEscaping
booleaninitialNewline
StringBufferpendingCharacters
Method Summary
voidcharacters(char[] ch, int start, int length)
Produce character output using the current Writer.
voidcomment(char[] ch, int start, int length)
Output a comment
voidendDocument()
End of document
voidprocessingInstruction(String target, String data)
Processing Instruction
voidsetEscaping(boolean escaping)
Switch escaping on or off.
voidstartDocument()
voidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Output an element start tag.

Field Detail

committed

boolean committed

initialEscaping

boolean initialEscaping

initialNewline

boolean initialNewline

pendingCharacters

StringBuffer pendingCharacters

Method Detail

characters

public void characters(char[] ch, int start, int length)
Produce character output using the current Writer.

comment

public void comment(char[] ch, int start, int length)
Output a comment

endDocument

public void endDocument()
End of document

processingInstruction

public void processingInstruction(String target, String data)
Processing Instruction

setEscaping

public void setEscaping(boolean escaping)
Switch escaping on or off. This is called when the XSLT disable-output-escaping attribute is used to switch escaping on or off. It is not called for other sections of output (e.g. element names) where escaping is inappropriate.

startDocument

public void startDocument()

startElement

public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Output an element start tag.
This can only be called once: it switches to a substitute output generator for XML or HTML, depending on whether the tag is "HTML".

Parameters: name The element name (tag)