public class SubtreeProcessingFilterGenerator
extends java.lang.Object
Constructor and Description |
---|
SubtreeProcessingFilterGenerator(net.sf.saxon.s9api.Processor saxonProcessor)
Initialise a generator using a provided Saxon Processor (for compatibility with DocumentComparator).
|
Modifier and Type | Method and Description |
---|---|
net.sf.saxon.s9api.XsltExecutable |
generate(java.util.List<Subtree> subtrees)
Generate an XsltExecutable object ready to set as the "add-core-element-class" FilterStep.
|
public SubtreeProcessingFilterGenerator(net.sf.saxon.s9api.Processor saxonProcessor) throws net.sf.saxon.s9api.SaxonApiException
saxonProcessor
- a Saxon Processornet.sf.saxon.s9api.SaxonApiException
- on any Saxon errorpublic net.sf.saxon.s9api.XsltExecutable generate(java.util.List<Subtree> subtrees) throws net.sf.saxon.s9api.SaxonApiException
subtrees
- A list of subtrees, where each Subtree contains an element XPath and a SubtreeModenet.sf.saxon.s9api.SaxonApiException