Class ShallowCopyRuleSet

java.lang.Object
net.sf.saxon.trans.rules.ShallowCopyRuleSet
All Implemented Interfaces:
ContextOriginator, BuiltInRuleSet
Direct Known Subclasses:
ShallowCopyAllRuleSet

public class ShallowCopyRuleSet extends Object implements BuiltInRuleSet
The built-in rule set introduced in XSLT 3.0, which is effectively an identity template.
  • Constructor Details Link icon

    • ShallowCopyRuleSet Link icon

      protected ShallowCopyRuleSet()
  • Method Details Link icon

    • getInstance Link icon

      public static ShallowCopyRuleSet getInstance()
      Get the singleton instance of this class
      Returns:
      the singleton instance
    • process Link icon

      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 interface BuiltInRuleSet
      Parameters:
      item - the item to be processed by this built-in rule
      parameters - the parameters supplied to apply-templates
      tunnelParams - the tunnel parameters to be passed through
      out - the destination for output
      context - the dynamic evaluation context
      locationId - location of the instruction (apply-templates, apply-imports etc) that caused
      Throws:
      XPathException - if any dynamic error occurs
    • getName Link icon

      public String getName()
      Identify this built-in rule set
      Specified by:
      getName in interface BuiltInRuleSet
      Returns:
      "shallow-copy"
    • getActionForParentNodes Link icon

      public BuiltInRules[] getActionForParentNodes(int nodeKind)
      Get the default action for unmatched nodes
      Specified by:
      getActionForParentNodes in interface BuiltInRuleSet
      Parameters:
      nodeKind - the node kind
      Returns:
      the default action for unmatched nodes: one of DEEP_COPY, APPLY_TEMPLATES, DEEP_SKIP, FAIL