int addVariableName(final org.apache.xml.utils.QName qname){
  int pos=m_variableNames.size();
  m_variableNames.addElement(qname);
  int frameSize=m_variableNames.size() - getGlobalsSize();
  if (frameSize > m_maxStackFrameSize)   m_maxStackFrameSize++;
  return pos;
}

int addVariableName ( final org . apache . xml . utils . QName qname ) { int pos = m_variableNames . size ( ) ; m_variableNames . addElement ( qname ) ; int frameSize = m_variableNames . size ( ) - getGlobalsSize ( ) ; if ( frameSize > m_maxStackFrameSize ) m_maxStackFrameSize ++ ; return pos ; }
add the name of a qualified name within the template . the position in the vector is its id .
