public interface BuiltInRuleSet extends ContextOriginator
Modifier and Type | Field and Description |
---|---|
static int |
APPLY_TEMPLATES_TO_ATTRIBUTES |
static int |
APPLY_TEMPLATES_TO_CHILDREN |
static int |
DEEP_COPY |
static int |
DEEP_SKIP |
static int |
FAIL |
static int |
SHALLOW_COPY |
Modifier and Type | Method and Description |
---|---|
int[] |
getActionForParentNodes(int nodeKind)
Get the action for unmatched element and document nodes (used when streaming)
|
java.lang.String |
getName()
Identify this built-in rule set
|
void |
process(Item item,
ParameterSet parameters,
ParameterSet tunnelParams,
XPathContext context,
Location locationId)
Perform the built-in template action for a given item.
|
static final int DEEP_COPY
static final int DEEP_SKIP
static final int FAIL
static final int SHALLOW_COPY
static final int APPLY_TEMPLATES_TO_ATTRIBUTES
static final int APPLY_TEMPLATES_TO_CHILDREN
void process(Item item, ParameterSet parameters, ParameterSet tunnelParams, XPathContext context, Location locationId) throws XPathException
item
- the item to be processedparameters
- the parameters supplied to apply-templatestunnelParams
- the tunnel parameters to be passed throughcontext
- the dynamic evaluation contextlocationId
- location of the instruction (apply-templates, apply-imports etc) that caused
the built-in template to be invokedXPathException
- if any dynamic error occursjava.lang.String getName()
int[] getActionForParentNodes(int nodeKind)
nodeKind
- the node kind: either Type.DOCUMENT or Type.ELEMENTCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.