com.icl.saxon

Class StylesheetStripper

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

Nested Class Summary

Field Summary

Fields inherited from class com.icl.saxon.output.ProxyEmitter

baseEmitter, outputProperties

Fields inherited from class com.icl.saxon.output.Emitter

locator, namePool, outputProperties, outputStream, systemId, writer

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 com.icl.saxon.om.Stripper

characters, endElement, getPreserveAll, getStripAll, isSpacePreserving, setController, setPreserveAll, setStripAll, startDocument, startElement

Methods inherited from class com.icl.saxon.output.ProxyEmitter

characters, comment, endDocument, endElement, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriter, startDocument, startElement

Methods inherited from class com.icl.saxon.output.Emitter

characters, comment, endDocument, endElement, getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, startDocument, startElement, usesWriter

Method Details

isSpacePreserving

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

Parameters:

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