protected ElemVariable createGlobalPseudoVarDecl(QName uniquePseudoVarName,StylesheetRoot stylesheetRoot,LocPathIterator lpi) throws org.w3c.dom.DOMException {
  ElemVariable psuedoVar=new ElemVariable();
  psuedoVar.setIsTopLevel(true);
  XPath xpath=new XPath(lpi);
  psuedoVar.setSelect(xpath);
  psuedoVar.setName(uniquePseudoVarName);
  Vector globalVars=stylesheetRoot.getVariablesAndParamsComposed();
  psuedoVar.setIndex(globalVars.size());
  globalVars.addElement(psuedoVar);
  return psuedoVar;
}

protected ElemVariable createGlobalPseudoVarDecl ( QName uniquePseudoVarName , StylesheetRoot stylesheetRoot , LocPathIterator lpi ) throws org . w3c . dom . DOMException { ElemVariable psuedoVar = new ElemVariable ( ) ; psuedoVar . setIsTopLevel ( true ) ; XPath xpath = new XPath ( lpi ) ; psuedoVar . setSelect ( xpath ) ; psuedoVar . setName ( uniquePseudoVarName ) ; Vector globalVars = stylesheetRoot . getVariablesAndParamsComposed ( ) ; psuedoVar . setIndex ( globalVars . size ( ) ) ; globalVars . addElement ( psuedoVar ) ; return psuedoVar ; }
create a psuedo variable reference that will represent the shared redundent xpath , for a local reduction .
