public class StylesheetStripper extends Stripper
ALWAYS_PRESERVE, ALWAYS_STRIP, CANNOT_STRIP, PRESERVE_PARENT, STRIP_DEFAULTnextReceiver, systemIdpipelineConfiguration, previousAtomicPI_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, startElementclose, comment, endDocument, getConfiguration, getDocumentLocator, getNamePool, getSystemId, getUnderlyingReceiver, namespace, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocumentappend, getPipelineConfigurationpublic Stripper getAnother()
StrippergetAnother in class Stripperpublic void setStylesheetRules(NamePool namePool)
public byte isSpacePreserving(int nameCode)
isSpacePreserving in class StrippernameCode - identifies the element being testedpublic byte isSpacePreserving(NodeInfo element)
isSpacePreserving in class Stripperelement - Identifies the element whose whitespace is possibly to
be preservedpublic void characters(CharSequence chars, int locationId, int properties) throws XPathException
characters in interface Receivercharacters in class Stripperchars - 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