| net.sf.saxon.event.Stripper net.sf.saxon.style.StylesheetStripper
StylesheetStripper | public class StylesheetStripper extends Stripper (Code) | | 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 available, and (b)
because the rules are very simple
author: Michael H. Kay |
isSpacePreserving | public byte isSpacePreserving(int nameCode)(Code) | | Decide whether an element is in the set of white-space preserving element types
Parameters: nameCode - identifies the element being tested |
isSpacePreserving | public byte isSpacePreserving(NodeInfo element)(Code) | | Decide whether an element is in the set of white-space preserving element types.
This version of the method is useful in cases where getting the namecode of the
element is potentially expensive, e.g. with DOM nodes.
Parameters: element - Identifies the element whose whitespace is possibly tobe preserved true if the element is in the set of white-space preserving element types |
setStylesheetRules | public void setStylesheetRules(NamePool namePool)(Code) | | Set the rules appropriate for whitespace-stripping in a stylesheet
|
|
|