Package net.sf.saxon.trans.rules
Class ShallowCopyRuleSet
- java.lang.Object
-
- net.sf.saxon.trans.rules.ShallowCopyRuleSet
-
- All Implemented Interfaces:
ContextOriginator
,BuiltInRuleSet
public class ShallowCopyRuleSet extends java.lang.Object implements BuiltInRuleSet
The built-in rule set introduced in XSLT 3.0, which is effectively an identity template.
-
-
Field Summary
-
Fields inherited from interface net.sf.saxon.trans.rules.BuiltInRuleSet
APPLY_TEMPLATES_TO_ATTRIBUTES, APPLY_TEMPLATES_TO_CHILDREN, DEEP_COPY, DEEP_SKIP, FAIL, SHALLOW_COPY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getActionForParentNodes(int nodeKind)
Get the default action for unmatched nodesstatic ShallowCopyRuleSet
getInstance()
Get the singleton instance of this classjava.lang.String
getName()
Identify this built-in rule setvoid
process(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter out, XPathContext context, Location locationId)
Perform the built-in template action for a given node.
-
-
-
Method Detail
-
getInstance
public static ShallowCopyRuleSet getInstance()
Get the singleton instance of this class- Returns:
- the singleton instance
-
process
public void process(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter out, XPathContext context, Location locationId) throws XPathException
Perform the built-in template action for a given node.- Specified by:
process
in interfaceBuiltInRuleSet
- Parameters:
item
-parameters
- the parameters supplied to apply-templatestunnelParams
- the tunnel parameters to be passed throughout
-context
- the dynamic evaluation contextlocationId
- location of the instruction (apply-templates, apply-imports etc) that caused- Throws:
XPathException
- if any dynamic error occurs
-
getName
public java.lang.String getName()
Identify this built-in rule set- Specified by:
getName
in interfaceBuiltInRuleSet
- Returns:
- "shallow-copy"
-
getActionForParentNodes
public int[] getActionForParentNodes(int nodeKind)
Get the default action for unmatched nodes- Specified by:
getActionForParentNodes
in interfaceBuiltInRuleSet
- Parameters:
nodeKind
- the node kind- Returns:
- the default action for unmatched nodes: one of DEEP_COPY, APPLY_TEMPLATES, DEEP_SKIP, FAIL
-
-