void composeTemplates(ElemTemplateElement templ) throws TransformerException {
  templ.compose(this);
  for (ElemTemplateElement child=templ.getFirstChildElem(); child != null; child=child.getNextSiblingElem()) {
    composeTemplates(child);
  }
  templ.endCompose(this);
}

void composeTemplates ( ElemTemplateElement templ ) throws TransformerException { templ . compose ( this ) ; for ( ElemTemplateElement child = templ . getFirstChildElem ( ) ; child != null ; child = child . getNextSiblingElem ( ) ) { composeTemplates ( child ) ; } templ . endCompose ( this ) ; }
call the compose function for each elemtemplateelement .
