}
  void doApply(Stylesheet stylesheet, QName mode,             Node context, int pos, int len,             Node parent, Node nextSibling)    throws TransformerException  {    TemplateNode t = stylesheet.getTemplate(mode, context, true);    if (t != null)      {        t.apply(stylesheet, mode, context, pos, len,                parent, nextSibling);      }    if (next != null)      {        next.apply(stylesheet, mode, context, pos, len,                   parent, nextSibling);      }  }