// Tag interface
//-------------------------------------------------------------------------
/** By default just evaluate the body */
public void doTag(XMLOutput output) throws Exception {
Stylesheet stylesheet = getStylesheet();
if ( stylesheet == null ) {
throw new JellyException(
"<applyTemplates> tag must be inside a <stylesheet> tag"
);
}
Object context = getXPathContext();
if ( select != null ) {
stylesheet.applyTemplates( context, select );
}
else {
stylesheet.applyTemplates( context );
}
// #### should support MODE!!!
}