com.icl.saxon
Class StylesheetStripper
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.ProxyEmitter
com.icl.saxon.om.Stripper
com.icl.saxon.StylesheetStripper
- All Implemented Interfaces:
- Result
- public class StylesheetStripper
- extends Stripper
The StylesheetStripper refines the Stripper class to do stripping of
whitespace nodes on a stylesheet. This is handled specially (a) because
it is done at compile time, so there is no Controller or Context available, and (b)
because the rules are very simple
- Author:
- Michael H. Kay (mhkay@iclway.co.uk)
Field Summary |
(package private) int |
xsl_text
|
Method Summary |
boolean |
isSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types |
void |
setStylesheetRules(NamePool namePool)
Set the rules appropriate for whitespace-stripping in a stylesheet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xsl_text
int xsl_text
StylesheetStripper
public StylesheetStripper()
setStylesheetRules
public void setStylesheetRules(NamePool namePool)
- Set the rules appropriate for whitespace-stripping in a stylesheet
isSpacePreserving
public boolean isSpacePreserving(int nameCode)
- Decide whether an element is in the set of white-space preserving element types
- Overrides:
isSpacePreserving
in class Stripper
- Returns:
- true if the element is in the set of white-space preserving element types