com.lotus.xsl
Interface FormatterListener

All Known Implementing Classes:
FormatterToDOM, XSLProcessor, FormatterToXML, FormatterToText

public abstract interface FormatterListener

A SAX-based formatter interface for the XSL processor. This interface will be called as result tree elements are constructed.


Method Summary
 void cdata(char[] ch, int start, int length)
          Receive notification of cdata.
 void comment(java.lang.String data)
          Called when a Comment is to be constructed.
 void entityReference(java.lang.String name)
          Receive notivication of a entityReference.
 

Method Detail

comment

public void comment(java.lang.String data)
             throws com.lotus.xsl.SAXException
Called when a Comment is to be constructed.
Parameters:
data - The comment data.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

cdata

public void cdata(char[] ch,
                  int start,
                  int length)
           throws com.lotus.xsl.SAXException
Receive notification of cdata.

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.

The application must not attempt to read from the array outside of the specified range.

Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).

Parameters:
ch - The characters from the XML document.
start - The start position in the array.
length - The number of characters to read from the array.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
See Also:
#ignorableWhitespace, org.xml.sax.Locator

entityReference

public void entityReference(java.lang.String name)
                     throws com.lotus.xsl.SAXException
Receive notivication of a entityReference.