com.icl.saxon

Class StylesheetStripper

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

Field Summary
intxsl_text
Method Summary
booleanisSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types
voidsetStylesheetRules(NamePool namePool)
Set the rules appropriate for whitespace-stripping in a stylesheet

Field Detail

xsl_text

int xsl_text

Method Detail

isSpacePreserving

public boolean isSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types

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

setStylesheetRules

public void setStylesheetRules(NamePool namePool)
Set the rules appropriate for whitespace-stripping in a stylesheet