// Hack to make DOM1 sort of work...
if(((type == Node.ELEMENT_NODE) || (type == Node.ATTRIBUTE_NODE))
&& null == localName)
localName = node.getNodeName(); // -sb
ExpandedNameTable exnt = m_expandedNameTable;
// %TBD% Nodes created with the old non-namespace-aware DOM
// calls createElement() and createAttribute() will never have a
// localname. That will cause their expandedNameID to be just the
// nodeType... which will keep them from being matched
// successfully by name. Since the DOM makes no promise that
// those will participate in namespace processing, this is
// officially accepted as Not Our Fault. But it might be nice to
// issue a diagnostic message!
if(node.getLocalName()==null &&
(type==Node.ELEMENT_NODE || type==Node.ATTRIBUTE_NODE))
{
// warning("DOM 'level 1' node "+node.getNodeName()+" won't be mapped properly in DOM2DTM.");
}
int expandedNameID = (null != localName)
? exnt.getExpandedTypeID(nsURI, localName, type) :
exnt.getExpandedTypeID(type);
m_exptype.setElementAt(expandedNameID,nodeIndex);
indexNode(expandedNameID, nodeIndex);