docKeys = new Hashtable();
docsKeyTables.put(docsTablesKey, docKeys);
}
// find if we've already indexed the nodes in this doc for this key
KeyValuesTable kvt = (KeyValuesTable) docKeys.get(keyName);
if (kvt == null) {
KeyDefinition kd = sheet.getKeyDefinition(keyName);
if (kd == null) {
// FIXME: throw an exception?
System.err.println("No key definition element for: " +
keyName.toString());
return null;
}
kvt = new KeyValuesTable(kd.getMatchPattern(),
kd.getUseExpression(),
contextNode,
this);
docKeys.put(keyName, kvt);