final int n = DOM.NTYPES + names.size();
final int n = _patternGroups.length;
    private void prepareTestSequences() {	final Vector names = _stylesheet.getXSLTC().getNamesIndex();	final Vector starGroup = _patternGroups[DOM.ELEMENT];	final Vector atStarGroup = _patternGroups[DOM.ATTRIBUTE];	// Complete test sequences with "*", "@*" and "node()"	if (starGroup != null || atStarGroup != null || _nodeGroup != null) {	    final int n = DOM.NTYPES + names.size();	    for (int m, i = DOM.NTYPES; i < n; i++) {		if (_patternGroups[i] == null) continue;		final String name = (String) names.elementAt(i - DOM.NTYPES);		if (isAttributeName(name)) {		    // If an attribute then copy "@*" to its test sequence		    m = (atStarGroup != null) ? atStarGroup.size() : 0;		    for (int j = 0; j < m; j++) {			addPattern(i, 			    (LocationPathPattern) atStarGroup.elementAt(j));		    }		}		else {		    // If an element then copy "*" to its test sequence		    m = (starGroup != null) ? starGroup.size() : 0;		    for (int j = 0; j < m; j++) {			addPattern(i, 			    (LocationPathPattern) starGroup.elementAt(j));		    }		    // And also copy "node()" to its test sequence		    m = (_nodeGroup != null) ? _nodeGroup.size() : 0;		    for (int j = 0; j < m; j++) {			addPattern(i, 			    (LocationPathPattern) _nodeGroup.elementAt(j));		    }		}	    }	}	_testSeq = new TestSeq[DOM.NTYPES + names.size()];		final int n = _patternGroups.length;	for (int i = 0; i < n; i++) {	    final Vector patterns = _patternGroups[i];	    if (patterns != null) {		final TestSeq testSeq = new TestSeq(patterns, i, this);		testSeq.reduce();		_testSeq[i] = testSeq;		testSeq.findTemplates(_neededTemplates);	    }	}	if ((_nodeGroup != null) && (_nodeGroup.size() > 0)) {	    _nodeTestSeq = new TestSeq(_nodeGroup, -1, this);	    _nodeTestSeq.reduce();	    _nodeTestSeq.findTemplates(_neededTemplates);	}	if ((_idxGroup != null) && (_idxGroup.size() > 0)) {	    _idxTestSeq = new TestSeq(_idxGroup, this);	    _idxTestSeq.reduce();	    _idxTestSeq.findTemplates(_neededTemplates);	}		if (_rootPattern != null) {	    // doesn't matter what is 'put', only key matters	    _neededTemplates.put(_rootPattern.getTemplate(), this);	}    }