Package net.sf.saxon.trans.rules
Interface BuiltInRuleSet
- All Superinterfaces:
ContextOriginator
- All Known Implementing Classes:
DeepCopyRuleSet
,DeepSkipRuleSet
,FailRuleSet
,RuleSetWithWarnings
,ShallowCopyRuleSet
,ShallowSkipRuleSet
,TextOnlyCopyRuleSet
Defines a set of built-in template rules (rules for use when no user-defined template
rules match a given node)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionint[]
getActionForParentNodes
(int nodeKind) Get the action for unmatched element and document nodes (used when streaming)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.
-
Field Details
-
DEEP_COPY
static final int DEEP_COPY- See Also:
-
DEEP_SKIP
static final int DEEP_SKIP- See Also:
-
FAIL
static final int FAIL- See Also:
-
SHALLOW_COPY
static final int SHALLOW_COPY- See Also:
-
APPLY_TEMPLATES_TO_ATTRIBUTES
static final int APPLY_TEMPLATES_TO_ATTRIBUTES- See Also:
-
APPLY_TEMPLATES_TO_CHILDREN
static final int APPLY_TEMPLATES_TO_CHILDREN- See Also:
-
-
Method Details
-
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
String getName()Identify this built-in rule set- Returns:
- the XSLT keyword used to identify this rule-set, for example "deep-copy
-
getActionForParentNodes
int[] 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
-