com.icl.saxon.om
public class Stripper extends ProxyEmitter
Constructor Summary | |
---|---|
protected | Stripper()
Default constructor for use in subclasses |
Stripper(Mode stripperRules)
create a Stripper and initialise variables |
Method Summary | |
---|---|
void | characters(char[] ch, int start, int length)
Callback interface for SAX: not for application use |
void | endElement(int nameCode)
Callback interface for SAX: not for application use |
boolean | getPreserveAll()
Determine if all whitespace is to be preserved (in this case, no further testing
is needed) |
boolean | getStripAll()
Determine if all whitespace is to be stripped (in this case, no further testing
is needed) |
boolean | isSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types |
void | setController(Controller controller)
Set the Controller to be used |
void | setPreserveAll()
Specify that all whitespace nodes are to be preserved |
void | setStripAll()
Specify that all whitespace nodes are to be stripped |
void | startDocument()
Callback interface for SAX: not for application use |
void | startElement(int nameCode, Attributes atts, int[] namespaces, int nscount)
Callback interface for SAX: not for application use |
Parameters: stripperRules: defines which elements have whitespace stripped. If null, all whitespace is preserved.
Parameters: uri The namespace URI of the element name localname The local part of the element name
Returns: true if the element is in the set of white-space preserving element types