// build sets of namespace uris and prefixes
IXMLWriter writer = ictx.getXmlWriter();
int curcnt = writer.getNamespaceCount();
StringIntSizedMap uriindexes = new StringIntSizedMap(curcnt);
int defcnt = m_namespaces.size() / 2;
StringSizedSet prefixes = new StringSizedSet(curcnt + defcnt);
for (int i = 0; i < curcnt; i++) {
uriindexes.add(writer.getNamespaceUri(i), i);
String prefix = writer.getNamespacePrefix(i);
if (prefix != null && prefix.length() > 0) {
prefixes.add(prefix);
}
}
// check namespace declarations on this element against writer state
List uris = new ArrayList();