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
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
FieldsFields inherited from class ProxyEmitter
baseEmitter, outputPropertiesFields inherited from class Emitter
locator, outputStream, systemId, writerFields inherited from interface Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSpacePreserving(int nameCode) Decide whether an element is in the set of white-space preserving element typesvoidsetStylesheetRules(NamePool namePool) Set the rules appropriate for whitespace-stripping in a stylesheetMethods inherited from class Stripper
characters, endElement, getPreserveAll, getStripAll, setController, setPreserveAll, setStripAll, startDocument, startElementMethods inherited from class ProxyEmitter
comment, endDocument, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriterMethods inherited from class Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter
-
Field Details
-
xsl_text
int xsl_text
-
-
Constructor Details
-
StylesheetStripper
public StylesheetStripper()
-
-
Method Details
-
setStylesheetRules
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:
isSpacePreservingin classStripper- Parameters:
uri- The namespace URI of the element namelocalname- The local part of the element name- Returns:
- true if the element is in the set of white-space preserving element types
-