Package net.sf.saxon.trans.rules
Class RuleSetWithWarnings
- java.lang.Object
- 
- net.sf.saxon.trans.rules.RuleSetWithWarnings
 
- 
- All Implemented Interfaces:
- ContextOriginator,- BuiltInRuleSet
 
 public class RuleSetWithWarnings extends java.lang.Object implements BuiltInRuleSet A set of built-in template rules that performs the same action as an underlying set of rules, but with the addition of a warning message saying that no user-defined template rules was found.XSLT 3.0 feature 
- 
- 
Field Summary- 
Fields inherited from interface net.sf.saxon.trans.rules.BuiltInRuleSetAPPLY_TEMPLATES_TO_ATTRIBUTES, APPLY_TEMPLATES_TO_CHILDREN, DEEP_COPY, DEEP_SKIP, FAIL, SHALLOW_COPY
 
- 
 - 
Constructor SummaryConstructors Constructor Description RuleSetWithWarnings(BuiltInRuleSet baseRuleSet)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getActionForParentNodes(int nodeKind)Get the default action for unmatched nodesBuiltInRuleSetgetBaseRuleSet()java.lang.StringgetName()Identify this built-in rule setvoidoutputWarning(Item item, XPathContext context)voidprocess(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter output, XPathContext context, Location locationId)Perform the built-in template action for a given item.
 
- 
- 
- 
Constructor Detail- 
RuleSetWithWarningspublic RuleSetWithWarnings(BuiltInRuleSet baseRuleSet) 
 
- 
 - 
Method Detail- 
getBaseRuleSetpublic BuiltInRuleSet getBaseRuleSet() 
 - 
processpublic 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.- Specified by:
- processin interface- BuiltInRuleSet
- Parameters:
- item- the item to be matched
- parameters- the parameters supplied to apply-templates
- tunnelParams- the tunnel parameters to be passed through
- output- the destination for the result
- context- the dynamic evaluation context
- locationId- location of the instruction (apply-templates, apply-imports etc) that caused
- Throws:
- XPathException- if any dynamic error occurs
 
 - 
getNamepublic java.lang.String getName() Identify this built-in rule set- Specified by:
- getNamein interface- BuiltInRuleSet
- Returns:
- the base name plus "with warnings"
 
 - 
outputWarningpublic void outputWarning(Item item, XPathContext context) 
 - 
getActionForParentNodespublic int[] getActionForParentNodes(int nodeKind) Get the default action for unmatched nodes- Specified by:
- getActionForParentNodesin interface- BuiltInRuleSet
- Parameters:
- nodeKind- the node kind
- Returns:
- the default action for unmatched element nodes: one of DEEP_COPY, APPLY_TEMPLATES, DEEP_SKIP, FAIL
 
 
- 
 
-