protected Rule createRule(StylesheetTag tag, XMLOutput output) {
return new Rule( match, createAction(tag, output) );
}
protected Action createAction(final StylesheetTag tag, final XMLOutput output) {
return new Action() {
public void run(Node node) throws Exception {
// store the context for use by applyTemplates tag
tag.setXPathSource( node );