public class StylesheetStripper extends Stripper
ALWAYS_PRESERVE, ALWAYS_STRIP, CANNOT_STRIP, PRESERVE_PARENT, STRIP_DEFAULT
nextReceiver, systemId
pipelineConfiguration, previousAtomic
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
StylesheetStripper() |
Modifier and Type | Method and Description |
---|---|
void |
characters(CharSequence chars,
int locationId,
int properties)
Handle a text node
|
Stripper |
getAnother()
Get a clean copy of this stripper
|
byte |
isSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types
|
byte |
isSpacePreserving(NodeInfo element)
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
|
attribute, endElement, getStripAll, open, setPipelineConfiguration, setStripAll, startElement
close, comment, endDocument, getConfiguration, getDocumentLocator, getNamePool, getSystemId, getUnderlyingReceiver, namespace, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument
append, getPipelineConfiguration
public Stripper getAnother()
Stripper
getAnother
in class Stripper
public void setStylesheetRules(NamePool namePool)
public byte isSpacePreserving(int nameCode)
isSpacePreserving
in class Stripper
nameCode
- identifies the element being testedpublic byte isSpacePreserving(NodeInfo element)
isSpacePreserving
in class Stripper
element
- Identifies the element whose whitespace is possibly to
be preservedpublic void characters(CharSequence chars, int locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class Stripper
chars
- The characterslocationId
- an integer which can be interpreted using a LocationMap to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.properties
- Bit significant value. The following bits are defined:
XPathException