Package net.sf.saxon.trans.rules
Interface BuiltInRuleSet
-
- All Superinterfaces:
ContextOriginator
- All Known Implementing Classes:
DeepCopyRuleSet
,DeepSkipRuleSet
,FailRuleSet
,RuleSetWithWarnings
,ShallowCopyAllRuleSet
,ShallowCopyRuleSet
,ShallowSkipRuleSet
,TextOnlyCopyRuleSet
public interface BuiltInRuleSet extends ContextOriginator
Defines a set of built-in template rules (rules for use when no user-defined template rules match a given node)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BuiltInRules[]
getActionForParentNodes(int nodeKind)
Get the action for unmatched element and document nodes (used when streaming)java.lang.String
getName()
Identify this built-in rule setvoid
process(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter output, XPathContext context, Location locationId)
Perform the built-in template action for a given item.
-
-
-
Method Detail
-
process
void process(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter output, XPathContext context, Location locationId) throws XPathException
Perform the built-in template action for a given item.- Parameters:
item
- the item to be processedparameters
- the parameters supplied to apply-templatestunnelParams
- the tunnel parameters to be passed throughoutput
- the destination for the resultcontext
- the dynamic evaluation contextlocationId
- location of the instruction (apply-templates, apply-imports etc) that caused the built-in template to be invoked- Throws:
XPathException
- if any dynamic error occurs
-
getName
java.lang.String getName()
Identify this built-in rule set- Returns:
- the XSLT keyword used to identify this rule-set, for example "deep-copy"
-
getActionForParentNodes
BuiltInRules[] getActionForParentNodes(int nodeKind)
Get the action for unmatched element and document nodes (used when streaming)- Parameters:
nodeKind
- the node kind: either Type.DOCUMENT or Type.ELEMENT- Returns:
- the sequence of actions to be taken
-
-