|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.om.SelectedElementsSpaceStrippingRule
public class SelectedElementsSpaceStrippingRule
A whitespace stripping rule that strips elected elements unless xml:space indicates that whitespace should be preserved.
Nested Class Summary | |
---|---|
static class |
SelectedElementsSpaceStrippingRule.StripRuleTarget
|
Constructor Summary | |
---|---|
SelectedElementsSpaceStrippingRule()
Create the ruleset |
Method Summary | |
---|---|
void |
addRule(NodeTest test,
Stripper.StripRuleTarget action,
StylesheetModule module,
int lineNumber)
Add a rule |
Rule |
getRule(NodeName nodeName)
Get the rule corresponding to a given element node, by finding the best pattern match. |
byte |
isSpacePreserving(NodeName fingerprint)
Decide whether an element is in the set of white-space preserving element names |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectedElementsSpaceStrippingRule()
Method Detail |
---|
public byte isSpacePreserving(NodeName fingerprint) throws XPathException
isSpacePreserving
in interface SpaceStrippingRule
fingerprint
- Identifies the name of the element whose whitespace is to
be preserved
XPathException
- if the rules are ambiguous and ambiguities are to be
reported as errorspublic void addRule(NodeTest test, Stripper.StripRuleTarget action, StylesheetModule module, int lineNumber)
test
- a NodeTest (*, *:local, prefix:*, or QName)action
- StripRuleTarget.STRIP or StripRuleTarget.PRESERVEmodule
- the stylesheet module containing the rulepublic Rule getRule(NodeName nodeName)
nodeName
- the name of the element node to be matched
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |