com.icl.saxon.output
Class UncommittedEmitter
java.lang.Object
|
+--com.icl.saxon.output.ProxyEmitter
|
+--com.icl.saxon.output.UncommittedEmitter
- All Implemented Interfaces:
- Emitter
- public class UncommittedEmitter
- extends ProxyEmitter
This class generates XML or HTML output depending on whether the first tag output is ""
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UncommittedEmitter
public UncommittedEmitter()
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Description copied from class:
ProxyEmitter
- Start of document
- Overrides:
startDocument
in class ProxyEmitter
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- End of document
- Overrides:
endDocument
in class ProxyEmitter
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
- Start a namespace prefix mapping. All prefixes used in element or attribute names
will be notified before the relevant startElement call
- Overrides:
startPrefixMapping
in class ProxyEmitter
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Produce character output using the current Writer.
- Overrides:
characters
in class ProxyEmitter
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
- Processing Instruction
- Overrides:
processingInstruction
in class ProxyEmitter
comment
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Output a comment
- Overrides:
comment
in class ProxyEmitter
startElement
public void startElement(Name fullname,
AttributeCollection attributes)
throws org.xml.sax.SAXException
- 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".
- Overrides:
startElement
in class ProxyEmitter
- Parameters:
name
- The element name (tag)
setEscaping
public void setEscaping(boolean escaping)
throws org.xml.sax.SAXException
- 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.
- Overrides:
setEscaping
in class ProxyEmitter