Package net.sf.saxon.trans
Class StripSpaceRules
java.lang.Object
net.sf.saxon.trans.StripSpaceRules
The set of rules used to decide strip-space/preserve-space matching of element names in XSLT.
- Author:
- Michael H. Kay
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor - creates a StripSpaceRules containing no rules -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRule
(NodeTest test, Stripper.StripRuleTarget action, StylesheetModule module, int lineNumber) Add a ruleGet the rule corresponding to a given element node, by finding the best pattern match.
-
Constructor Details
-
StripSpaceRules
public StripSpaceRules()Default constructor - creates a StripSpaceRules containing no rules
-
-
Method Details
-
addRule
public void addRule(NodeTest test, Stripper.StripRuleTarget action, StylesheetModule module, int lineNumber) Add a rule- Parameters:
test
- a NodeTest (*, *:local, prefix:*, or QName)action
- StripRuleTarget.STRIP or StripRuleTarget.PRESERVEmodule
- the stylesheet module containing the rule
-
getRule
Get the rule corresponding to a given element node, by finding the best pattern match.- Parameters:
nodeName
- the name of the element node to be matched- Returns:
- the best matching rule, if any (otherwise null).
-