net.sf.saxon.style
Class StylesheetStripper
java.lang.Object
net.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.ProxyReceiver
net.sf.saxon.event.Stripper
net.sf.saxon.style.StylesheetStripper
- All Implemented Interfaces:
- Result, Receiver
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 available, and (b)
because the rules are very simple
- Author:
- Michael H. Kay
Method Summary |
Stripper |
getAnother()
Get a clean copy of this stripper. |
byte |
isSpacePreserving(int fingerprint)
Decide whether an element is in the set of white-space preserving element types |
Methods inherited from class net.sf.saxon.event.ProxyReceiver |
append, close, comment, endDocument, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StylesheetStripper
public StylesheetStripper()
getAnother
public Stripper getAnother()
- Description copied from class:
Stripper
- Get a clean copy of this stripper. The new copy shares the same PipelineConfiguration
as the original, but the underlying receiver (that is, the destination for post-stripping
events) is left uninitialized.
- Specified by:
getAnother
in class Stripper
isSpacePreserving
public byte isSpacePreserving(int fingerprint)
- Decide whether an element is in the set of white-space preserving element types
- Specified by:
isSpacePreserving
in class Stripper
- Parameters:
fingerprint
- identifies the element being tested
- Returns:
- ALWAYS_PRESERVE if the element is in the set of white-space preserving
element types, ALWAYS_STRIP if the element is to be stripped regardless of the
xml:space setting, and STRIP_DEFAULT otherwise
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.