code: public void compose(StylesheetRoot sroot) throws TransformerException
    {
  
      super.compose(sroot);
  
      int length = getSortElemCount();
  
      for (int i = 0; i < length; i++)
      {
        getSortElem(i).compose(sroot);
      }
  
      java.util.Vector vnames = sroot.getComposeState().getVariableNames();
  
      if (null != m_selectExpression)
        m_selectExpression.fixupVariables(
          vnames, sroot.getComposeState().getGlobalsSize());
      else
      {
        m_selectExpression =
          getStylesheetRoot().m_selectDefault.getExpression();
      }
    }
docs: This function is called after everything else has been
  recomposed, and allows the template to set remaining
  values that may be based on some other property that
  depends on recomposition.
  
  NEEDSDOC @param sroot
  
  @throws TransformerException