Package net.sf.saxon.trans.rules
Class DeepCopyRuleSet
java.lang.Object
net.sf.saxon.trans.rules.DeepCopyRuleSet
- All Implemented Interfaces:
ContextOriginator,BuiltInRuleSet
The built-in rule set introduced in XSLT 3.0, which performs a deep copy of any unmatched node.
-
Method Summary
Modifier and TypeMethodDescriptiongetActionForParentNodes(int nodeKind) Get the default action for unmatched nodesstatic DeepCopyRuleSetGet the singleton instance of this classgetName()Identify this built-in rule setvoidprocess(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter out, XPathContext context, Location locationId) Perform the built-in template action for a given node.
-
Method Details
-
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:
processin interfaceBuiltInRuleSet- Parameters:
item- the item to be processed using the built-in actionparameters- the parameters supplied to apply-templatestunnelParams- the tunnel parameters to be passed throughout- the destination for outputcontext- the dynamic evaluation contextlocationId- location of the instruction (apply-templates, apply-imports etc) that caused- Throws:
XPathException- if any dynamic error occurs
-
getActionForParentNodes
Get the default action for unmatched nodes- Specified by:
getActionForParentNodesin interfaceBuiltInRuleSet- Parameters:
nodeKind- the node kind- Returns:
- the default action for unmatched element nodes: one of DEEP_COPY, APPLY_TEMPLATES, SKIP, FAIL
-
getName
Identify this built-in rule set- Specified by:
getNamein interfaceBuiltInRuleSet- Returns:
- "deep-copy"
-